diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gcalc.py | 2 |
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 |