switch string to unicode

This commit is contained in:
ldolse 2010-09-28 17:54:07 +08:00
parent 443d45c560
commit 7653dfd082

View File

@ -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