This commit is contained in:
Kovid Goyal 2014-06-05 12:57:13 +05:30
parent 93b6d39974
commit 4c7bd989a7

View File

@ -149,7 +149,7 @@ class JsonCodec(object):
value = book.get(key)
if key == 'thumbnail':
return encode_thumbnail(value)
elif isbytestring(value): # str includes bytes
elif isbytestring(value): # str includes bytes
enc = filesystem_encoding if key == 'lpath' else preferred_encoding
return object_to_unicode(value, enc=enc)
elif datatype == 'datetime':