# HG changeset patch # User greg # Date 1256726567 -3600 # Node ID ca07a88ee68aa7c13f49131cc36769c1a06fbaed # Parent ef7fc6fd1f6fce8a9f1c166ad0b41fbcf7cc5f52# Parent 5981ad8547f5bcfe2e9c93b7973fbca79178487f Merge with 5981ad8547f5bcfe2e9c93b7973fbca79178487f diff -r ef7fc6fd1f6f -r ca07a88ee68a plugger.py --- a/plugger.py Wed Oct 28 11:38:23 2009 +0100 +++ b/plugger.py Wed Oct 28 11:42:47 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 ef7fc6fd1f6f -r ca07a88ee68a plugins/c_ext/c_ext.py --- a/plugins/c_ext/c_ext.py Wed Oct 28 11:38:23 2009 +0100 +++ b/plugins/c_ext/c_ext.py Wed Oct 28 11:42:47 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 ef7fc6fd1f6f -r ca07a88ee68a plugins/python/python.py --- a/plugins/python/python.py Wed Oct 28 11:38:23 2009 +0100 +++ b/plugins/python/python.py Wed Oct 28 11:42:47 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()