diff options
Diffstat (limited to 'grc/gui/VariableEditor.py')
-rw-r--r-- | grc/gui/VariableEditor.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/grc/gui/VariableEditor.py b/grc/gui/VariableEditor.py index b243829197..d815e5ddd1 100644 --- a/grc/gui/VariableEditor.py +++ b/grc/gui/VariableEditor.py @@ -183,6 +183,9 @@ class VariableEditor(Gtk.VBox): # Evaluate the params for key in block.params: evaluated = str(block.params[key].evaluate()) + # ensure that evaluated is a UTF-8 string + # Old PMTs could produce non-UTF-8 strings + evaluated = evaluated.encode('utf-8', 'backslashreplace').decode('utf-8') self.set_tooltip_text(evaluated) # Evaluate the block value |