Correct another UTF-8 issue

pull/544/head
nicolargo 2015-04-19 16:52:51 +02:00
parent 4865b6c03f
commit 07f73ddeb6
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ class _GlancesCurses(object):
try:
# Python 2: we need to decode to get real screen size because utf-8 special tree chars
# occupy several bytes
offset = len(m['msg'].decode("utf-8"))
offset = len(m['msg'].decode("utf-8", "replace"))
except AttributeError:
# Python 3: strings are strings and bytes are bytes, all is
# good