[issue9692] UnicodeDecodeError in ElementTree.tostring()

Ulrich Seidl report at bugs.python.org
Thu Aug 26 19:59:22 CEST 2010


Ulrich Seidl <Ulrich.Seidl at muneda.com> added the comment:

Well, the output of the print is not that interesting as long as ElementTree is able the restore the former attributes value when reading it in again. The print was just used to illustrate that an UnicodeDecodeError appears. Think about doing an 
ElementTree.fromstring( ... ).get( "ATTR" ).encode( "iso-8859-1" ).

----------

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


More information about the Python-bugs-list mailing list