# HG changeset patch # User Goffi # Date 1293466825 -3600 # Node ID e178e8f6d13af5f55fe199bd36fd24d0edcff532 # Parent 5c420b1f1df4727049d7edd6fc5df9b349bd7ae5 fixed some unicode issue diff -r 5c420b1f1df4 -r e178e8f6d13a tools/memory.py --- a/tools/memory.py Mon Dec 27 15:14:28 2010 +0100 +++ b/tools/memory.py Mon Dec 27 17:20:25 2010 +0100 @@ -97,7 +97,7 @@ def save_xml(self, file): """Save parameters template to xml file""" with open(file, 'wb') as xml_file: - self.dom.writexml(xml_file) + xml_file.write(self.dom.toxml('utf-8')) def save_data(self, file): """Save parameters data to file""" diff -r 5c420b1f1df4 -r e178e8f6d13a tools/xml_tools.py --- a/tools/xml_tools.py Mon Dec 27 15:14:28 2010 +0100 +++ b/tools/xml_tools.py Mon Dec 27 17:20:25 2010 +0100 @@ -73,7 +73,7 @@ def paramsXml2xmlUI(xml): """Convert the xml for parameter to a SàT XML User Interface""" - params_doc = minidom.parseString(xml) + params_doc = minidom.parseString(xml.encode('utf-8')) top = params_doc.documentElement if top.nodeName != 'params': error(_('INTERNAL ERROR: parameters xml not valid'))