# HG changeset patch # User Goffi # Date 1260689780 -39600 # Node ID a544b376b6f0269b47b7cb01b059b98826bad93d # Parent b9bb5d8e0cc7b756763cac260ef2718512b421ba use proper utf-8 encoding for parsing xml in parameters diff -r b9bb5d8e0cc7 -r a544b376b6f0 frontends/wix/param.py --- a/frontends/wix/param.py Tue Dec 08 09:54:44 2009 +0100 +++ b/frontends/wix/param.py Sun Dec 13 18:36:20 2009 +1100 @@ -57,7 +57,7 @@ panel=wx.Panel(self.notebook) panel.sizer = wx.BoxSizer(wx.VERTICAL) - cat_dom = minidom.parseString(self.host.bridge.getParamsForCategory(category)) + cat_dom = minidom.parseString(self.host.bridge.getParamsForCategory(category).encode('utf-8')) for param in cat_dom.documentElement.getElementsByTagName("param"): name = param.getAttribute("name") diff -r b9bb5d8e0cc7 -r a544b376b6f0 tools/memory.py --- a/tools/memory.py Tue Dec 08 09:54:44 2009 +0100 +++ b/tools/memory.py Sun Dec 13 18:36:20 2009 +1100 @@ -37,7 +37,7 @@ ### TODO: add desciption in params #TODO: mettre Watched dans un plugin - default_xml = """ + default_xml = u""" @@ -52,7 +52,7 @@ """ def load_default_params(self): - self.dom = minidom.parseString(Param.default_xml) + self.dom = minidom.parseString(Param.default_xml.encode('utf-8')) def __init__(self, host): debug("Parameters init") @@ -78,7 +78,7 @@ """import xml in parameters, do nothing if the param already exist @param parent: parent class (usefull for callbacks) @param xml: parameters in xml form""" - src_dom = minidom.parseString(xml) + src_dom = minidom.parseString(xml.encode('utf-8')) def import_node(tgt_parent, src_parent): for child in src_parent.childNodes: