diff --git a/mitmproxy/contrib/urwid/raw_display.py b/mitmproxy/contrib/urwid/raw_display.py index 337c63df6..8a0aaa451 100644 --- a/mitmproxy/contrib/urwid/raw_display.py +++ b/mitmproxy/contrib/urwid/raw_display.py @@ -1168,7 +1168,7 @@ class ReadInputThread(threading.Thread): if inp.EventType == win32.EventType.KEY_EVENT: if not inp.Event.KeyEvent.bKeyDown: continue - self._input.send(inp.Event.KeyEvent.uChar.AsciiChar) + self._input.send(inp.Event.KeyEvent.uChar.UnicodeChar.encode("utf8")) elif inp.EventType == win32.EventType.WINDOW_BUFFER_SIZE_EVENT: self._resize() else: