From: daid Date: Tue, 17 Apr 2012 11:49:34 +0000 (+0200) Subject: Fixed #57 - mistakenly encoded to str (ascii) before trying to convert to utf-8. X-Git-Tag: RC3~70 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f52575373a78c08291d926dc7b67e5217531567d;p=cura.git Fixed #57 - mistakenly encoded to str (ascii) before trying to convert to utf-8. --- diff --git a/Cura/util/profile.py b/Cura/util/profile.py index bee1ef3f..3bdfbb2c 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -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')) #########################################################