summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui.py b/src/gui.py
index 21d69a0a..a5521452 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -159,7 +159,7 @@ class Gui(object):
doupdate()
char=read_char(stdscr)
try: # if this is not a valide utf-8 char, discard it
- char.encode('utf-8')
+ char.decode('utf-8')
except UnicodeDecodeError:
continue
# search for keyboard shortcut