Re: xmlrpclib and binary data as normal parameter strings

2005-04-20 Thread Rune Froysa
"Richard Brodie" <[EMAIL PROTECTED]> writes: > "Rune Froysa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> From http://www.xmlrpc.com/spec :: >> Any characters are allowed in a string except < and &, which are >> encoded as < and &. A string can be used to encode binary >>

Re: xmlrpclib and binary data as normal parameter strings

2005-04-19 Thread Richard Brodie
"Rune Froysa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From http://www.xmlrpc.com/spec :: > Any characters are allowed in a string except < and &, which are > encoded as < and &. A string can be used to encode binary > data. the XMLRPC specification is worded pretty lo

Re: xmlrpclib and binary data as normal parameter strings

2005-04-19 Thread Fredrik Lundh
Rune Froysa wrote: > >From http://www.w3.org/TR/2004/REC-xml11-20040204/#dt-character :: > Consequently, XML processors MUST accept any character in the range > specified for Char > ... > Char ::= [#x1-#xD7FF] | [#xE000-#xFFFD] | [#x1-#x10] you're looking at the XML 1.1 specifica

xmlrpclib and binary data as normal parameter strings

2005-04-19 Thread Rune Froysa
Trying something like:: import xmlrpclib svr = xmlrpclib.Server("http://127.0.0.1:8000";) svr.test("\x1btest") Failes on the server with:: xml.parsers.expat.ExpatError: not well-formed (invalid token) (Smaller test-case: xmlrpclib.loads(xmlrpclib.dumps(('\x1btest', Shouldn't this be