diff --git a/src/calibre/ebooks/conversion/preprocess.py b/src/calibre/ebooks/conversion/preprocess.py index 6e83146527..2e02a1b90e 100644 --- a/src/calibre/ebooks/conversion/preprocess.py +++ b/src/calibre/ebooks/conversion/preprocess.py @@ -538,7 +538,7 @@ class HTMLPreProcessor(object): unidecoder = Unidecoder() for char in unsupported_unicode_chars: asciichar = unidecoder.decode(char) - html = re.sub('%s' % char, asciichar, html) + html = re.sub(u'%s' % char, asciichar, html) return html