diff options
Diffstat (limited to 'sugar/profile.py')
-rw-r--r-- | sugar/profile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar/profile.py b/sugar/profile.py index 840e101..8041a4e 100644 --- a/sugar/profile.py +++ b/sugar/profile.py @@ -66,7 +66,9 @@ class _Profile(object): parsed = cp.read([config_path]) if cp.has_option('Buddy', 'NickName'): - self.name = cp.get('Buddy', 'NickName') + name = cp.get('Buddy', 'NickName') + # decode nickname from ascii-safe chars to unicode + self.name = name.decode("utf-8") if cp.has_option('Buddy', 'Color'): self.color = XoColor(cp.get('Buddy', 'Color')) |