mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
pass unicode to simplejson.loads()
This commit is contained in:
parent
df3185ab0f
commit
64275642ba
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue