[PATCH] fix unicode string encoding/decoding in python bindings

Robert McQueen robert.mcqueen at collabora.co.uk
Wed Sep 21 04:24:32 PDT 2005


I ran into TypeError exceptions when trying to send unicode strings over
DBus[1] with the python bindings, so I did this patch to add support for
sending and recieving unicode strings. dbus.String is now descended from
unicode rather than str, these and str/unicode objects are encoded to
utf8 to send, and incoming strings are decoded from utf8.

Regards,
Rob

[1]: What's the canonical capitalisation of this? dbus, D-BUS, DBUS,
DBus, D-Bus...? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-python-unicode-sending.patch
Type: text/x-patch
Size: 2131 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050921/6f81325d/dbus-python-unicode-sending.bin


More information about the dbus mailing list