diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-10 21:58:19 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-10 21:58:19 +0200 |
commit | c9645b31054b9b3dbdac5fd02f97ce3805060b92 (patch) | |
tree | 02bded6906a114bfe53fd553282d6b4ba7bdc3b4 | |
parent | c638647fde7934f5367ebbfec4778726cf9bc1ab (diff) |
gcalc: Fixed encoding errors.
-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 |