Fixed #57 - mistakenly encoded to str (ascii) before trying to convert to utf-8.

This commit is contained in:
daid 2012-04-17 13:49:34 +02:00
parent aea30f1e0b
commit f52575373a

View file

@ -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'))
#########################################################