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):
|
def run_command(self, command):
|
||||||
'''Given a string run it on the stack, report errors.'''
|
'''Given a string run it on the stack, report errors.'''
|
||||||
|
command = command.encode('utf_8')
|
||||||
try:
|
try:
|
||||||
self.world.interpret(command)
|
self.world.interpret(command)
|
||||||
except SystemExit:
|
except SystemExit:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue