2008-06-17 14:13:50 UTC
As far as I can tell, the xml rpc spec doesn't talk about encoding. Although an earlier version specified that strings were ascii, that wording has been removed but not replaced with anything else, letting the issue be handled by the xml encoding attribute.
This link has some useful info:
http://effbot.org/zone/xmlrpc-errata.htm
I think what I will do is:
1. Make UTF-8 encoding the default when writing the xml, and assume UTF-8 when reading xml with not encoding attribute specified.
2. Provide an API to specify the encoding.
3. The encoding applies to all the XML (strings, method names, struct member names).
4. (?) Provide API to convert to/from the native encoding to UTF-8. Does anyone know of any portable way to do this? How do you go about identifying a UTF-8 encoded locale in a portable way ? ...