[issue9692] UnicodeDecodeError in ElementTree.tostring()
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Aug 26 18:26:52 CEST 2010
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Testing with python 2.5: oDoc.set("ATTR", "ÄÖÜ") uses the encoding used by the source code (with "# -*- coding:";) If I use utf-8 instead, the output is:
<ROOT ATTR="ÄÖÜ" />
which contains the numbers of the 3 pairs of surrogates.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9692>
_______________________________________
More information about the Python-bugs-list
mailing list