This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author uis
Recipients amaury.forgeotdarc, flox, uis
Date 2011-01-11.13:33:53
SpamBayes Score 0.09892979
Marked as misclassified No
Message-id <1294752835.17.0.0612595600447.issue9692@psf.upfronthosting.co.za>
In-reply-to
Content
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")
History
Date User Action Args
2011-01-11 13:33:55uissetrecipients: + uis, amaury.forgeotdarc, flox
2011-01-11 13:33:55uissetmessageid: <1294752835.17.0.0612595600447.issue9692@psf.upfronthosting.co.za>
2011-01-11 13:33:53uislinkissue9692 messages
2011-01-11 13:33:53uiscreate