[issue18911] minidom does not encode correctly when calling Document.writexml
May 16, 2019
3:12 a.m.
Windson Yang <wiwindson@outlook.com> added the comment: I added a PR for like this: .. note:: You should specify the "xmlcharrefreplace" error handler when open a file with specified encoding:: writer = open( filename, "w", encoding="utf-8", errors="xmlcharrefreplace") doc.writexml(writer, "", " ", "utf-8") ---------- nosy: +Windson Yang _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue18911> _______________________________________
2584
Age (days ago)
2584
Last active (days ago)
0 comments
1 participants
participants (1)
-
Windson Yang