[Python-3000] XML as bytes or unicode?
Antoine Pitrou
solipsis at pitrou.net
Mon Aug 18 18:54:08 CEST 2008
Benjamin Peterson <musiccomposition <at> gmail.com> writes:
>
> Well, unless the parser decodes explicitly, I believe this should be true.
XML documents have an encoding declaration... the parser's should be able to
handle it, no?
Actually, I've just checked and ElementTree does support bytes input, including
with non-ASCII chars. It's just that there are no tests for it.
More information about the Python-3000
mailing list