We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bda7d6b + 60a3d93 commit 3afdbf6Copy full SHA for 3afdbf6
xmltojson.py
@@ -89,7 +89,7 @@ def walktojson(self, elem):
89
continue
90
91
print("converting " + fullname + " to " + newname)
92
- doc = w.makedoc(open(fullname).read())
+ doc = w.makedoc(open(fullname, encoding='utf-8').read())
93
obj = w.walktojson(doc)
94
open(newname, 'w').write(json.dumps(obj,indent=2))
95
elif singleFile:
0 commit comments