--- 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("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\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("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\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
--- 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()
--- 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()