fixed apos encoding.

This commit is contained in:
Michele Comitini
2012-09-22 23:37:06 +02:00
parent 39f5c04f94
commit f4cc813740
+1 -1
View File
@@ -34,7 +34,7 @@ join = ''.join
# name2codepoint is incomplete respect to xhtml (and xml): 'apos' is missing.
entitydefs = dict(map(lambda (k,v): (k, unichr(v).encode('utf-8')), name2codepoint.iteritems()))
entitydefs.setdefault('apos', u"'")
entitydefs.setdefault('apos', u"'".encode('utf-8'))
__all__ = [