[issue2174] xml.sax.xmlreader does not support the InputSource protocol

Yitz Gale report at bugs.python.org
Sun Feb 24 15:18:29 CET 2008


Yitz Gale added the comment:

Hmm. When getSourceEncoding() is None, there needs to be some
way for the parser to distinguish between the cases where it
is getting pre-decoded Unicode through a character stream,
or where it is getting a byte stream with an unspecified
encoding. In the latter case, it will have to look in the
XML for an encoding declaration, or use UTF-8 by default).

Note that expat only can handle the latter case.

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


More information about the Python-bugs-list mailing list