From 79a653c08b7d39970cba4591c16f351a95754d12 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sun, 22 Jul 2018 11:51:47 -0700 Subject: [PATCH] Oh python, oh unicode. --- joy/gui/textwidget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/joy/gui/textwidget.py b/joy/gui/textwidget.py index 02defe8..9eea55b 100644 --- a/joy/gui/textwidget.py +++ b/joy/gui/textwidget.py @@ -297,6 +297,7 @@ class TextViewerWidget(tk.Text, MouseBindingsMixin, SavingMixin): def run_command(self, command): '''Given a string run it on the stack, report errors.''' + command = command.encode('utf_8') try: self.world.interpret(command) except SystemExit: