fix str encoding issue python3
authorGP Orcullo <kinsamanka@gmail.com>
Sat, 04 Feb 2023 07:18:21 +0800
branchpython3
changeset 3783 741d0010b4b2
parent 3782 39480d9d3d3f
child 3784 a5f58ca4629b
fix str encoding issue
CodeFileTreeNode.py
--- a/CodeFileTreeNode.py	Thu Nov 10 23:21:22 2022 +0800
+++ b/CodeFileTreeNode.py	Sat Feb 04 07:18:21 2023 +0800
@@ -193,7 +193,7 @@
             self.CodeFile,
             pretty_print=True,
             xml_declaration=True,
-            encoding='utf-8'))
+            encoding='utf-8').decode())
         xmlfile.close()
 
         self.MarkCodeFileAsSaved()