# HG changeset patch # User laurent # Date 1256656373 -3600 # Node ID 34fc9b8132059a15cd862249814bf5bd366644a3 # Parent 20464365086ec948fa19971da48e6af28baa64e5 Allowing unicode characters to be used in comments diff -r 20464365086e -r 34fc9b813205 PLCControler.py --- 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: