proper treatment of utf-8
authorhaftmann
Wed, 11 Jan 2017 21:32:46 +0100
changeset 64879 58525e7f721f
parent 64878 e9208a9301c0
child 64880 3f36c53aa105
proper treatment of utf-8
Admin/lib/scripts/churn_pie
--- a/Admin/lib/scripts/churn_pie	Wed Jan 11 20:15:17 2017 +0100
+++ b/Admin/lib/scripts/churn_pie	Wed Jan 11 21:32:46 2017 +0100
@@ -11,7 +11,7 @@
 data = []
 
 for line in sys.stdin.readlines():
-    match = re_entry.match(line)
+    match = re_entry.match(unicode(line, 'utf-8'))
     data.append((match.group(1), int(match.group(2))))
 
 plot = pie_plot.T(data = data, arc_offsets = [],