Fix XML encoding
1. Write out using utf-8 encoding. Shouldn't matter really since
we don't generate non-ASCII data,
2. When parsing, DON'T override the file's encoding!
diff --git a/Lib/xmlWriter.py b/Lib/xmlWriter.py
index 50f46f0..aa70f13 100644
--- a/Lib/xmlWriter.py
+++ b/Lib/xmlWriter.py
@@ -9,7 +9,7 @@
class XMLWriter:
- def __init__(self, fileOrPath, indentwhite=INDENT, idlefunc=None, encoding="ISO-8859-1"):
+ def __init__(self, fileOrPath, indentwhite=INDENT, idlefunc=None, encoding="utf-8"):
if not hasattr(fileOrPath, "write"):
self.file = open(fileOrPath, "w")
else: