Share

XmlRpc++

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

quique123,where's the code for UTF-8?

You are viewing a single message from this topic. View all messages.

  1. 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 ? ...

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.