mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
dc71b6b002
commit
9e5d8ee682
@ -1818,7 +1818,7 @@ class MobiWriter(object):
|
|||||||
text = text.strip()
|
text = text.strip()
|
||||||
if not isinstance(text, unicode):
|
if not isinstance(text, unicode):
|
||||||
text = text.decode('utf-8', 'replace')
|
text = text.decode('utf-8', 'replace')
|
||||||
text = text.encode('utf-8')
|
text = normalize(text).encode('utf-8')
|
||||||
else :
|
else :
|
||||||
text = "(none)".encode('utf-8')
|
text = "(none)".encode('utf-8')
|
||||||
return text
|
return text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user