mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
switch string to unicode
This commit is contained in:
parent
443d45c560
commit
7653dfd082
@ -538,7 +538,7 @@ class HTMLPreProcessor(object):
|
|||||||
unidecoder = Unidecoder()
|
unidecoder = Unidecoder()
|
||||||
for char in unsupported_unicode_chars:
|
for char in unsupported_unicode_chars:
|
||||||
asciichar = unidecoder.decode(char)
|
asciichar = unidecoder.decode(char)
|
||||||
html = re.sub('%s' % char, asciichar, html)
|
html = re.sub(u'%s' % char, asciichar, html)
|
||||||
|
|
||||||
return html
|
return html
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user