This commit is contained in:
Kovid Goyal 2011-02-16 10:11:11 -07:00
parent dc71b6b002
commit 9e5d8ee682

View File

@ -1818,7 +1818,7 @@ class MobiWriter(object):
text = text.strip()
if not isinstance(text, unicode):
text = text.decode('utf-8', 'replace')
text = text.encode('utf-8')
text = normalize(text).encode('utf-8')
else :
text = "(none)".encode('utf-8')
return text