Oh python, oh unicode.
This commit is contained in:
parent
4ed8422258
commit
79a653c08b
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue