[issue7727] xmlrpc library returns string which contain null ( \x00 )
STINNER Victor
report at bugs.python.org
Thu Jan 21 03:09:12 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Marshaller.dump_string() encodes a byte string in <string>...</string> using the escape() function. A byte string can be encoded in base64 using <base64>...</base64>. It's described in the XML-RPC specification, but I don't know if all XML-RPC implementations do understand this type.
http://www.xmlrpc.com/spec
Should we change the default type to base64, or only fallback to base64 if the byte string cannot be encoded in XML. Test if a byte string can be encoded in XML can be slow, and set default type to base64 may cause compatibility issues :-/
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7727>
_______________________________________
More information about the Python-bugs-list
mailing list