Commit b6210cfd authored by Sebastien Robin's avatar Sebastien Robin

replace one very strange character


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1210 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c30220a
......@@ -178,6 +178,9 @@ def Base_asXML(object, ident=0):
xml_unicode = xml
else:
xml_unicode = unicode(xml,encoding='iso-8859-1')
# 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 ')
return xml_unicode.encode('utf-8')
def Folder_asXML(object, ident=0):
......
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