PLCControler.py
changeset 1186 0ce4104d58ed
parent 1171 a506e4de8f84
child 1222 775b48a2be3b
--- a/PLCControler.py	Wed May 29 11:09:05 2013 +0900
+++ b/PLCControler.py	Wed May 29 09:22:40 2013 +0200
@@ -2209,7 +2209,7 @@
             text = "<paste>%s</paste>"%text
             
             try:
-                tree = minidom.parseString(text)
+                tree = minidom.parseString(text.encode("utf-8"))
             except:
                 return _("Invalid plcopen element(s)!!!")
             instances = []