[issue2278] [Py30a3] xml.parsers.expat recognizes encoding="utf-8" but not encoding="utf8"

Mark Summerfield report at bugs.python.org
Sat Mar 15 18:52:04 CET 2008


Mark Summerfield <mark at qtrac.eu> added the comment:

You're right that the parser should not recognise "utf8" since it isn't
correct XML (as per the references you gave).

I made the mistake because I used the etree module and wrote an XML file
with encoding "utf8" which etree accepted. I've now switched to using
"UTF-8".

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2278>
__________________________________


More information about the Python-bugs-list mailing list