From cee382b3ad89d7009f4e5c8fa6ec9c54e8a8ac1d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 30 Aug 2009 14:30:46 +0000 Subject: Deal with unicode nick names (erikos) #889 --- diff --git a/src/buddy.py b/src/buddy.py index 2b83ee4..e85a925 100644 --- a/src/buddy.py +++ b/src/buddy.py @@ -974,9 +974,12 @@ class ShellOwner(GenericOwner): key_hash = profile.privkey_hash key = profile.pubkey - nick = client.get_string("/desktop/sugar/user/nick") color = client.get_string("/desktop/sugar/user/color") tags = client.get_string("/desktop/sugar/user/tags") + nick = client.get_string("/desktop/sugar/user/nick") + + if not isinstance(nick, unicode): + nick = unicode(nick, 'utf-8') icon_file = os.path.join(env.get_profile_path(), "buddy-icon.jpg") f = open(icon_file, "r") -- cgit v0.9.1