plugger.py
changeset 430 5981ad8547f5
parent 428 ea09f33ce717
child 440 f122eb4248b6
--- 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