diff options
author | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-08-23 15:00:54 -0400 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-08-23 15:06:14 -0400 |
commit | 397f50a7018af53cd5fff17fcd4110ce05e5d7f8 (patch) | |
tree | d86fdd3b0e52c472f6345428611912705eac0672 | |
parent | 959805f14d7f2f0b8f2604672b0b4b96c14d65d2 (diff) |
Decode utf-8 encoded sender's nick to an unicode string
-rw-r--r-- | butterfly/channel/text.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/butterfly/channel/text.py b/butterfly/channel/text.py index 301f3d5..0ddd020 100644 --- a/butterfly/channel/text.py +++ b/butterfly/channel/text.py @@ -172,6 +172,7 @@ class ButterflyTextChannel( }, signature='sv') if sender_nick not in (None, ''): + sender_nick = unicode(sender_nick, "utf-8") headers[dbus.String('sender-nickname')] = dbus.String(sender_nick) body = dbus.Dictionary({dbus.String('content-type'): dbus.String('text/plain'), |