summaryrefslogtreecommitdiff
path: root/modules/gcalc.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gcalc.py')
-rw-r--r--modules/gcalc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gcalc.py b/modules/gcalc.py
index 1596f8d..6abee92 100644
--- a/modules/gcalc.py
+++ b/modules/gcalc.py
@@ -16,7 +16,7 @@ class Module:
u = urllib2.urlopen(url)
# fix object keys
- data = u.read().replace('lhs', '"lhs"').replace('rhs', '"rhs"').replace('error', '"error"').replace('icc', '"icc"')
+ data = u.read().decode('iso-8859-1').replace('lhs', '"lhs"').replace('rhs', '"rhs"').replace('error', '"error"').replace('icc', '"icc"')
data = json.loads(data)
if len(data['error']):
return