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

Benjamin Peterson report at bugs.python.org
Thu Mar 13 22:08:33 CET 2008


Benjamin Peterson <musiccomposition at gmail.com> added the comment:

Should the parser recognize "utf8"? I looked at the XML standard [1] and
it referred me to the IANA's charts [2]. It appears the the only correct
way to denote UTF-8 is "UTF-8".


[1] http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
[2] http://www.iana.org/assignments/character-sets

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list