summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-10-10 21:58:19 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-10-10 21:58:19 +0200
commitc9645b31054b9b3dbdac5fd02f97ce3805060b92 (patch)
tree02bded6906a114bfe53fd553282d6b4ba7bdc3b4 /modules
parentc638647fde7934f5367ebbfec4778726cf9bc1ab (diff)
gcalc: Fixed encoding errors.
Diffstat (limited to 'modules')
-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