# HG changeset patch # User laurent # Date 1256657055 -3600 # Node ID 5981ad8547f5bcfe2e9c93b7973fbca79178487f # Parent 1a5471e81a931ec09094eef6591a1b113a531827 Allowing unicode characters to be used in comments diff -r 1a5471e81a93 -r 5981ad8547f5 plugger.py --- a/plugger.py Mon Oct 26 11:20:16 2009 +0100 +++ b/plugger.py Tue Oct 27 16:24:15 2009 +0100 @@ -202,14 +202,14 @@ if self.MandatoryParams: BaseXMLFile = open(self.PluginBaseXmlFilePath(),'w') BaseXMLFile.write("\n") - BaseXMLFile.write(self.MandatoryParams[1].generateXMLText(self.MandatoryParams[0], 0)) + BaseXMLFile.write(self.MandatoryParams[1].generateXMLText(self.MandatoryParams[0], 0).encode("utf-8")) BaseXMLFile.close() # generate XML for XML parameters controller of the plugin if self.PlugParams: XMLFile = open(self.PluginXmlFilePath(),'w') XMLFile.write("\n") - XMLFile.write(self.PlugParams[1].generateXMLText(self.PlugParams[0], 0)) + XMLFile.write(self.PlugParams[1].generateXMLText(self.PlugParams[0], 0).encode("utf-8")) XMLFile.close() # Call the plugin specific OnPlugSave method diff -r 1a5471e81a93 -r 5981ad8547f5 plugins/c_ext/c_ext.py --- a/plugins/c_ext/c_ext.py Mon Oct 26 11:20:16 2009 +0100 +++ b/plugins/c_ext/c_ext.py Tue Oct 27 16:24:15 2009 +0100 @@ -262,7 +262,7 @@ text += self.CFile.generateXMLText("CFile", 0, extras) xmlfile = open(filepath,"w") - xmlfile.write(text) + xmlfile.write(text.encode("utf-8")) xmlfile.close() self.CFileBuffer.CurrentSaved() diff -r 1a5471e81a93 -r 5981ad8547f5 plugins/python/python.py --- a/plugins/python/python.py Mon Oct 26 11:20:16 2009 +0100 +++ b/plugins/python/python.py Tue Oct 27 16:24:15 2009 +0100 @@ -174,7 +174,7 @@ text += self.PythonCode.generateXMLText("Python", 0, extras) xmlfile = open(filepath,"w") - xmlfile.write(text) + xmlfile.write(text.encode("utf-8")) xmlfile.close() self.PythonBuffer.CurrentSaved()