[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

Amaury Forgeot d'Arc report at bugs.python.org
Tue May 21 22:59:41 CEST 2013


Amaury Forgeot d'Arc added the comment:

The patch goes in the right direction: consistently reject non-8bit encodings which the current implementation does not support.
- please add a unit test
- remove usage of PyUnicodeObject and the "Stupid to access directly" comment, they are outdated.

Real support for GBK is more work, http://wang.yuxuan.org/blog/?itemid=63 shows how to set a conversion callback. It will difficult to implement in the general case, see my older comment.

----------

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


More information about the Python-bugs-list mailing list