From f52575373a78c08291d926dc7b67e5217531567d Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 17 Apr 2012 13:49:34 +0200 Subject: [PATCH] Fixed #57 - mistakenly encoded to str (ascii) before trying to convert to utf-8. --- Cura/util/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) ######################################################### -- 2.30.2