Fix UnicodeEncodeError ascii decode error in markdown filter.

This commit is contained in:
Christopher Ramírez 2014-06-15 20:28:11 -06:00
parent f3e5923737
commit 476142bb23

View file

@ -350,7 +350,7 @@ class Render(object):
styles_cache = {} # cache styles searching
html_text = markdown(markdown_text)
xml_object = parseString('<html>%s</html>' % html_text)
xml_object = parseString('<html>%s</html>' % html_text.encode('ascii', 'xmlcharrefreplace'))
# Transform HTML tags as specified in transform_map
# Some tags may require extra attributes in ODT.