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/importnotes.py | |
parent | a5ccb836a3a281c6526a497a4426335eedbcad93 (diff) |
fixed encoding problems. again.
Diffstat (limited to 'program/management/commands/importnotes.py')
-rw-r--r-- | program/management/commands/importnotes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/management/commands/importnotes.py b/program/management/commands/importnotes.py index a8030ec..19ddfed 100644 --- a/program/management/commands/importnotes.py +++ b/program/management/commands/importnotes.py @@ -26,9 +26,9 @@ WHERE n.sendung_id in (SELECT id FROM sendungen WHERE letzter_termin > current_d counter = 0 for ntitel, datum, stitel, notiz in cursor.fetchall(): - ntitel = strip_tags(ntitel.decode('latin1').encode('utf8')) - stitel = strip_tags(stitel.decode('latin1').encode('utf8')) - notiz = clean_html(notiz.decode('latin1').encode('utf8')) + ntitel = strip_tags(ntitel) + stitel = strip_tags(stitel) + notiz = clean_html(notiz) if stitel.endswith('(Wiederholung)'): stitel = stitel[:-15] |