mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #188
This commit is contained in:
parent
d0434f5915
commit
e7f96c2ee0
@ -387,7 +387,7 @@ class LRFMetaFile(object):
|
|||||||
if len(src) != self.uncompressed_info_size:
|
if len(src) != self.uncompressed_info_size:
|
||||||
raise LRFException("Decompression of document meta info\
|
raise LRFException("Decompression of document meta info\
|
||||||
yielded unexpected results")
|
yielded unexpected results")
|
||||||
candidate = unicode(src, 'utf-16')
|
candidate = unicode(src, 'utf-16', 'replace')
|
||||||
# LRF files produced with makelrf dont have a correctly
|
# LRF files produced with makelrf dont have a correctly
|
||||||
# encoded metadata block.
|
# encoded metadata block.
|
||||||
# Decoding using latin1 is the most useful for me since I
|
# Decoding using latin1 is the most useful for me since I
|
||||||
|
Loading…
x
Reference in New Issue
Block a user