From a3ccac772dd40db6e4878f1a818dfb346ac27341 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 7 Feb 2006 23:44:35 +0000 Subject: [PATCH] timer: convert stored messages to UTF-8 when loading --- RecordTimer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2