[issue11033] ElementTree.fromstring doesn't work with Unicode

Alexander Belopolsky report at bugs.python.org
Wed Feb 2 17:33:09 CET 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Wed, Feb 2, 2011 at 11:10 AM, STINNER Victor <report at bugs.python.org> wrote:
..
> We can explain in ElementTree documentation how to pass non-ASCII unicode strings: using
> explicit encoding to UTF-8.

ElementTree.fromstring() ultimately calls ElementTree.XMLParser.feed()
which is documented as follows:

"""
feed(data)
Feeds data to the parser. data is encoded data.
"""

Maybe we can simply add "encoded" to the description of
ElementTree.fromstring()  argument as well?

----------

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


More information about the Python-bugs-list mailing list