Encode nickname in UTF-8 when writing it out to .sugar/*/config (#4518)

This commit is contained in:
Simon McVittie
2007-10-30 16:10:02 +00:00
parent 4391d4777a
commit 5abcb4e8dd
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class Profile(object):
parsed = cp.read([self._config_path])
if self.nick_name:
_set_key(cp, 'Buddy', 'NickName', self.nick_name)
_set_key(cp, 'Buddy', 'NickName', self.nick_name.encode('utf8'))
if self.color:
_set_key(cp, 'Buddy', 'Color', self.color.to_string())
if self.backup1: