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."