Stefan Behnel <stefan...@behnel.de> added the comment:

Asking users unconditionally to use the "xmlcharrefreplace" replacement method 
seems wrong for UTF-8. It should not be necessary.

We should, however, document explicitly that the file will receive text and not 
bytes, i.e. that users are themselves responsible for opening the output file 
with the desired encoding. We should also make it clearer that the "encoding" 
argument to writexml() does not change that.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue18911>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to