[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: The characters are forbidden both in raw form *and* in escaped form. So even if they get escaped, they *still* will lead to errors. So there is no point in escaping them. -- resolution: -> wont fix status: open -> closed ___

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Alexey
Alexey added the comment: What am I trying to say is: if those characters are forbidden, then maybe they need to be escaped rather than ignored? -- ___ Python tracker ___ _

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Alexey
Alexey added the comment: >This is correct behavior. \x00 is not supported in XML: > not in raw form, and not in escaped form last sentence in forth paragraph of section 1.3 in XML 1.1 specification says following: == Due to potential problems with APIs, #x0 is still forbidden both directl

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2011-12-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is correct behavior. \x00 is not supported in XML: not in raw form, and not in escaped form. To transmit binary data in XML, use base64. -- nosy: +loewis status: open -> closed ___ Python tracker

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2011-12-22 Thread Alexey
Alexey added the comment: sorry, xmpppy uses it's own escape method, but anyway... :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2011-12-22 Thread Alexey
Changes by Alexey : -- components: +XML ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2011-12-22 Thread Alexey
New submission from Alexey : function xml.sax.saxutils.escape('\x00qweqwe<') returns '\x00qweqwe<' \x00 did not escaped to � is this is a correct behavior? this is influences tools like xmpppy, which sends \x00 not encoded and leads to xmpp error. -- messages: 150096 nosy: Animus pri