[issue35428] xml.etree.ElementTree.tostring violates W3 standards allowing encoding='unicode' without error

2019-01-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue35428] xml.etree.ElementTree.tostring violates W3 standards allowing encoding='unicode' without error

2018-12-07 Thread Stefan Behnel
Stefan Behnel added the comment: What exactly is the problem here? encoding='unicode' will never appear in the XML declaration, and thus will never be "presented to XML processors". It is up to the user to deal with encodings in this case, which I think is fine. It's them who asked for the n

[issue35428] xml.etree.ElementTree.tostring violates W3 standards allowing encoding='unicode' without error

2018-12-06 Thread EZ
New submission from EZ : The documentation[0] for 3.x of xml.etree.ElementTree.tostring is quite clear: > Use encoding="unicode" to generate a Unicode string. See also the creation of the problem: https://bugs.python.org/issue10942 This is a violation of W3 standards, referenced by the Element