Fix bug when compiling project containing non-ascii characters
authorLaurent Bessard
Wed, 19 Dec 2012 13:32:51 +0100
changeset 901 ab43f3e40b9d
parent 900 3e78925125e1
child 902 ffa8ee5ee2fe
Fix bug when compiling project containing non-ascii characters
PLCControler.py
--- a/PLCControler.py	Wed Dec 19 13:32:04 2012 +0100
+++ b/PLCControler.py	Wed Dec 19 13:32:51 2012 +0100
@@ -720,7 +720,7 @@
             try:
                 self.ProgramChunks = GenerateCurrentProgram(self, self.Project, errors, warnings)
                 self.NextCompiledProject = self.Copy(self.Project)
-                program_text = "".join([item[0].decode("utf-8") for item in self.ProgramChunks])
+                program_text = "".join([item[0] for item in self.ProgramChunks])
                 if filepath is not None:
                     programfile = open(filepath, "w")
                     programfile.write(program_text.encode("utf-8"))