fix breaking non-latin description and comments in FBD, LD, SFC and
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 08 Nov 2016 18:06:30 +0300
changeset 1563 584b6fdb949e
parent 1562 6e38f13d4b7b
child 1564 8ffd0b52c2c7
fix breaking non-latin description and comments in FBD, LD, SFC and
project settings after Undo operation
xmlclass/xmlclass.py
--- a/xmlclass/xmlclass.py	Wed Nov 02 14:23:24 2016 +0300
+++ b/xmlclass/xmlclass.py	Tue Nov 08 18:06:30 2016 +0300
@@ -1754,7 +1754,7 @@
         return tree, None 
     
     def Dumps(self, xml_obj):
-        return etree.tostring(xml_obj)
+        return etree.tostring(xml_obj, encoding='utf-8')
     
     def Loads(self, xml_string):
         return etree.fromstring(xml_string, self)