Ulrich Seidl <[email protected]> added the comment:
I would suggest adding an additional except branch to (at least) the following
functions of ElementTree.py:
* _encode,
* _escape_attrib, and
* _escape_cdata
The except branch could look like:
except (UnicodeDecodeError):
return text.decode( encoding ).encode( encoding, "xmlcharrefreplace")
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9692>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com