DOCX Input: Fix failure to convert some DOCX files that use Symbol fonts. Fixes #1777390 [Private bug](https://bugs.launchpad.net/calibre/+bug/1777390)

This commit is contained in:
Kovid Goyal 2018-06-18 13:18:35 +05:30
parent c57a493711
commit e20b1f2d0a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -126,6 +126,8 @@ def do_map(m, points):
def map_symbol_text(text, font):
m = SYMBOL_MAPS[font]
if isinstance(text, bytes):
text = text.decode('utf-8')
return ''.join(do_map(m, ord_string(text)))