diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-03-25 22:08:27 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-03-25 22:08:27 (GMT) |
commit | d1bb616aae8a11afef2627cf8a8d166156a05cf7 (patch) | |
tree | ba1cb988d625725660aeab0d04ce3fa16ca47a96 /program/management/commands/importshows.py | |
parent | a5ccb836a3a281c6526a497a4426335eedbcad93 (diff) |
fixed encoding problems. again.
Diffstat (limited to 'program/management/commands/importshows.py')
-rw-r--r-- | program/management/commands/importshows.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/management/commands/importshows.py b/program/management/commands/importshows.py index 9fee4ef..b013dab 100644 --- a/program/management/commands/importshows.py +++ b/program/management/commands/importshows.py @@ -28,14 +28,14 @@ ORDER BY titel, beginn, ende""") counter = 0 for titel, beschreibung, web, macher in cursor.fetchall(): - titel = strip_tags(titel.decode('latin1').encode('utf8')) - beschreibung = clean_html(beschreibung.decode('latin1').encode('utf8')) + titel = strip_tags(titel) + beschreibung = clean_html(beschreibung) slug = slugify(titel) hosts = [] - for macher in macher.decode('latin1').encode('utf8').split(','): + for macher in macher.split(','): macher = macher.strip() try: host = Host.objects.get(name=macher) |