[issue18850] xml.etree.ElementTree accepts control chars.

Stefan Behnel report at bugs.python.org
Thu Aug 29 05:25:01 CEST 2013


Stefan Behnel added the comment:

Is that you actual use case? That you *want* to store binary data in XML, instead of getting it properly rejected as non well-formed content?

Then I suggest going the canonical route of passing it through base64 first, or any of the other binary-to-characters encoding.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18850>
_______________________________________


More information about the Python-bugs-list mailing list