Commit 7ac2d253 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Assume UTF-8 instead of ISO-8859-1.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1404 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd417487
......@@ -177,7 +177,7 @@ def Base_asXML(object, ident=0):
if type(xml) is type(u"a"):
xml_unicode = xml
else:
xml_unicode = unicode(xml,encoding='iso-8859-1')
xml_unicode = unicode(xml,encoding='UTF-8')
# This following character is quite strange, and parseString
# fails, but when printed, it show a '\n' and a space, so I replace
xml_unicode = xml_unicode.replace('\x0c','\n ')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment