From 3d9ed2e409fab9c86519f3c0d4e118b29d17018b Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 7 Aug 2010 00:36:49 +0000 Subject: also, that --- src/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3