Menu

#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

  • Frederic Jolliton

    Add support for encoding of Unicode string to UTF8.

     
  • Frederic Jolliton

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

     
  • Frederic Jolliton

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.