beremiz

Parents b36755d7c19e
Children be891953958f
Fixed bug when copy/paste element containing unicode characters
--- 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 = []