mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
switch string to unicode
This commit is contained in:
parent
443d45c560
commit
7653dfd082
1 changed files with 1 additions and 1 deletions
|
|
@ -538,7 +538,7 @@ def dump(raw, where):
|
||||||
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…
Reference in a new issue