1.7.4.1版本RF显示乱码修改
上一篇 /
下一篇 2020-03-24 11:54:55
1.7.4.1版本RF显示乱码:
except UnicodeDecodeError as e:
# I'm not sure why I sometimes get this, and I don't know what I
# can do other than to ignore it.
if PY2:
if is_unicode(string):
textctrl.AppendTextRaw(bytes(string.encode('utf-8')))
else:
textctrl.AppendTextRaw(string)
else:
textctrl.AppendTextRaw(bytes(string, encoding['OUTPUT'])) # DEBUG .encode('utf-8')) 将此行的SYSTEM改为OUTPUT
# print(r"DEBUG UnicodeDecodeError appendtext string=%s\n" % string)
pass
改后如下图:
收藏
举报
TAG: