# HG changeset patch # User Andrey Skvortsov # Date 1497967279 -10800 # Node ID 65ce8afe4b8fbb91b25d11e0028524acc3d4da43 # Parent ae3e819252fc0e3cf3bd5af3f263ed840d4d0e40 enable non-latin variable descriptions in CodeFileEditor fix following backtrace: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) Traceback (most recent call last): File "beremiz/editors/CodeFileEditor.py", line 610, in GetValue return str(self.data[row].get(self.GetColLabelValue(col, False), "")) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) diff -r ae3e819252fc -r 65ce8afe4b8f editors/CodeFileEditor.py --- a/editors/CodeFileEditor.py Tue Jun 20 16:36:17 2017 +0300 +++ b/editors/CodeFileEditor.py Tue Jun 20 17:01:19 2017 +0300 @@ -607,7 +607,7 @@ if col == 0: return row + 1 else: - return str(self.data[row].get(self.GetColLabelValue(col, False), "")) + return unicode(self.data[row].get(self.GetColLabelValue(col, False), "")) def _updateColAttrs(self, grid): """