Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#11 Adding Unicode encoding support

open
nobody
None
5
2004-06-26
2004-06-26
No

This patch add encoding support for Unicode string. The
string is converted to an UTF8 string before encoding
by the regular function encodeString(). No decoding
function was added. The receiver have to consider all
string UTF8-encoded (since XML-RPC only handle one type
of string.)

Also, regular string with encoding other than UTF8 are
not changed. (This is a bad idea anyway if receiver is
not aware of the particular encoding. UTF8 must be used
in all case whenever possible.)

See also http://olav.dk/unirpc/faq.html.

Discussion

  • Add support for encoding of Unicode string to UTF8 - version 2 (with added support for dictionary key in Unicode)

     
  • Logged In: YES
    user_id=29662

    Here is a better (and different) patch.

    In addition to previous patch, it also encode struct names
    (dictionary keys in Python world) if they are Unicode.