# HG changeset patch
# User Andrey Skvortsov <andrej.skvortzov@gmail.com>
# Date 1478617590 -10800
# Node ID 584b6fdb949ec9b1771eaffbf5cb928a0a3e0366
# Parent  6e38f13d4b7b7ce89302deffb16e17c8a8fef70d
fix breaking non-latin description and comments in FBD, LD, SFC and
project settings after Undo operation

diff -r 6e38f13d4b7b -r 584b6fdb949e 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)