summaryrefslogtreecommitdiff
path: root/program/management/commands/importnotes.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-25 22:08:27 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-25 22:08:27 (GMT)
commitd1bb616aae8a11afef2627cf8a8d166156a05cf7 (patch)
treeba1cb988d625725660aeab0d04ce3fa16ca47a96 /program/management/commands/importnotes.py
parenta5ccb836a3a281c6526a497a4426335eedbcad93 (diff)
fixed encoding problems. again.
Diffstat (limited to 'program/management/commands/importnotes.py')
-rw-r--r--program/management/commands/importnotes.py6
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]