New submission from Peter Gyorko :
If I add a string to the response, which contains non-printable characters, the
output will not be parsed by the most of the XML parsers (I tried with XML-RPC
for PHP).
Here is my quick and dirty fix:
--- a/Lib/xmlrpclib.py
+++ b/Lib/xmlrpclib.py
@@ -165,9
Peter Gyorko added the comment:
The shortest code which can trigger this error is the following:
>>> import xmlrpclib
>>> print xmlrpclib.dumps(('\x01',))
As you can see, the escape method does not care about non-printable characters
which can cause parsing