aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rwxr-xr-xlib/python/Components/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 4ddcabec..4d57bbb9 100755
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -782,12 +782,12 @@ class ConfigText(ConfigElement, NumericalTextInput):
def getValue(self):
return self.text.encode("utf-8")
-
+
def setValue(self, val):
try:
self.text = val.decode("utf-8")
except UnicodeDecodeError:
- self.text = val
+ self.text = val.decode("utf-8", "ignore")
print "Broken UTF8!"
value = property(getValue, setValue)