XML_RPC and unicode problems

"Martin v. Löwis" martin at v.loewis.de
Fri Sep 17 14:36:27 EDT 2004


phansen wrote:
>>> Seems to me that description is inadequate, if one has to revert
>>> to <base64> to pass through a string with an \xa0 in it.
>>
>>
>> No. \xa0 just is not a character. In XML, all bytes must denote
>> characters, and \xa0 does not denote any character when the
>> encoding is UTF-8.
>>
>> To transmit binary data, use the base64 element, available through
>> xmlrpclib.Binary in Python.
> 
> 
> That's what I said, isn't it?  Just checking, because you started
> your response with "No", as though I had said something incorrect.

Ah, I only read the answer of the fragment you quoted, not the
question :-(

Yes, that answer is confusing, as it doesn't really answer it
(although the answer itself is correct). Binary data and XML-RPC
has a long and confusing history.

Regards,
Martin



More information about the Python-list mailing list