From: Felix Domke Date: Tue, 7 Feb 2006 23:44:35 +0000 (+0000) Subject: timer: convert stored messages to UTF-8 when loading X-Git-Tag: 2.6.0~4182 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/a3ccac772dd40db6e4878f1a818dfb346ac27341 timer: convert stored messages to UTF-8 when loading --- diff --git a/RecordTimer.py b/RecordTimer.py index 4cfada5a..2835a388 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -205,7 +205,7 @@ def createTimer(xml): for l in elementsWithTag(xml.childNodes, "log"): time = int(l.getAttribute("time")) code = int(l.getAttribute("code")) - msg = mergeText(l.childNodes).strip() + msg = mergeText(l.childNodes).strip().encode("utf-8") entry.log_entries.append((time, code, msg)) return entry