[New-bugs-announce] [issue13648] xml.sax.saxutils.escape does not escapes \x00

Alexey report at bugs.python.org
Thu Dec 22 15:49:17 CET 2011

New submission from Alexey <animus at wayround.org>:

function xml.sax.saxutils.escape('\x00qweqwe<') returns '\x00qweqwe&lt;'

\x00 did not escaped to &#0;

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
priority: normal
severity: normal
status: open
title: xml.sax.saxutils.escape does not escapes \x00
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list