From 64275642ba780bbfa4c217a9d749825b9236669f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 15 Mar 2009 06:39:08 +0900 Subject: [PATCH] pass unicode to simplejson.loads() --- anki/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sync.py b/anki/sync.py index 11061001f..b982181e1 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -843,7 +843,7 @@ and cards.id in %s""" % ids2str([c[0] for c in cards]))) def unstuff(self, data): "Uncompress and convert to unicode." - return simplejson.loads(zlib.decompress(data)) + return simplejson.loads(unicode(zlib.decompress(data), "utf8")) def stuff(self, data): "Convert into UTF-8 and compress."