[New-bugs-announce] [issue9458] xml.etree.ElementTree.write(): encoding handling problems

Uli Kunitz report at bugs.python.org
Mon Aug 2 23:02:05 CEST 2010


New submission from Uli Kunitz <uli.kunitz at googlemail.com>:

If one wants to use the encoding parameter of ElementTree.write() the file must be opened with "wb". Without encoding parameter normal files can be used, but the should be opened with the encoding "UTF-8", because otherwise this may create an error.

Probably comparable problems exist with the parser side of things.

----------
components: XML
messages: 112550
nosy: kune
priority: normal
severity: normal
status: open
title: xml.etree.ElementTree.write(): encoding handling problems
versions: Python 3.2

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


More information about the New-bugs-announce mailing list