plugins/python/python.py
changeset 433 ca07a88ee68a
parent 430 5981ad8547f5
child 654 9f6c091c316c
--- 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()