PLCControler.py
changeset 452 34fc9b813205
parent 447 6083dcecd2c5
child 483 779a519f78f2
--- a/PLCControler.py	Mon Oct 26 11:49:06 2009 +0100
+++ b/PLCControler.py	Tue Oct 27 16:12:53 2009 +0100
@@ -2596,7 +2596,7 @@
                 xmlfile = open(filepath,"w")
             else:
                 xmlfile = open(self.FilePath,"w")
-            xmlfile.write(text)
+            xmlfile.write(text.encode("utf-8"))
             xmlfile.close()
             self.MarkProjectAsSaved()
             if filepath: