diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-07 04:18:42 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-05-07 04:18:42 (GMT) |
commit | c89bc07e0bc57b73fbb099e7e458b41ecb739cc9 (patch) | |
tree | 130a3ef0a01de299d3aa2608cb7d3b82c77c0e19 /sugar/profile.py | |
parent | 110fa5f35471665990fa3485f926c9116e39709c (diff) |
Fix nickname encoding and length issues
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')) |