Fixed #57 - mistakenly encoded to str (ascii) before trying to convert to utf-8.
This commit is contained in:
parent
aea30f1e0b
commit
f52575373a
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ def putPreference(name, value):
|
|||
globalPreferenceParser.read(getPreferencePath())
|
||||
if not globalPreferenceParser.has_section('preference'):
|
||||
globalPreferenceParser.add_section('preference')
|
||||
globalPreferenceParser.set('preference', name, str(value).encode("utf-8"))
|
||||
globalPreferenceParser.set('preference', name, unicode(value).encode("utf-8"))
|
||||
globalPreferenceParser.write(open(getPreferencePath(), 'w'))
|
||||
|
||||
#########################################################
|
||||
|
|
Loading…
Reference in a new issue