mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:34:27 +02:00
Fix #8232 (Conversion bug in HTML to MOBI)
This commit is contained in:
parent
633ad8c1f9
commit
1a0d6c13fb
1 changed files with 1 additions and 1 deletions
|
|
@ -1892,7 +1892,7 @@ def fix_data(d):
|
|||
return fix_data(data.decode(bom_enc))
|
||||
except UnicodeDecodeError:
|
||||
pass
|
||||
if self.input_encoding is not None:
|
||||
if self.input_encoding:
|
||||
try:
|
||||
return fix_data(data.decode(self.input_encoding, 'replace'))
|
||||
except UnicodeDecodeError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue