I encounter a problem when trying to bind an umlaut-key (äöü) to a Tkinter window in Python 3.
The error message Tkinter prints out is basically:
Traceback (most recent call last):
self.tk.bind("Ä", self.take_white_ippon)
_tkinter.TclError: bad ASCII character 0x84
You can try this MCVE:
from tkinter import *
tk = Tk()
def doSomething(e=None):
print("doSomething()")
# The next line is basically ignored
tk.bind("ä", doSomething)
# This line will throw the error message
tk.bind("<ä>", doSomething)
tk.mainloop()
You can try Alt+0228 to enter an ä (using the number pad).
I have not found any other SO/Google pages about this topic. I have only found some questions about general problems with Tkinter and non-ascii characters.