mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #8232 (Conversion bug in HTML to MOBI)
This commit is contained in:
parent
633ad8c1f9
commit
1a0d6c13fb
@ -1892,7 +1892,7 @@ class OEBBook(object):
|
|||||||
return fix_data(data.decode(bom_enc))
|
return fix_data(data.decode(bom_enc))
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
pass
|
pass
|
||||||
if self.input_encoding is not None:
|
if self.input_encoding:
|
||||||
try:
|
try:
|
||||||
return fix_data(data.decode(self.input_encoding, 'replace'))
|
return fix_data(data.decode(self.input_encoding, 'replace'))
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user