python - Where in the Tkinter application stack is a question mark ("?") substituted in place of Unicode keyboard input into an Text widget? -


this question exact duplicate of:

where in tkinter application stack question mark ("?") substituted in place of unicode keyboard input text widget?

possible locations: python, tkinter, tcl/tk, windows, windows keyboard

i have similar question here: when type non-ascii characters using windows keyboard "?"

but question meant ask "where issue occurring (in application stack)?" so, perhaps shed light on similar classes of questions 1 submitted earlier.

my environment is:

the issue that, @ point, there conversion of unicode symbol particular sequence of bytes using encoding not support particular character (which causes “replacement character” instead, happens ? particular conversion).

the core of tk unicode-aware , @ least initial stage of scripting using utf-8; character (well, almost certainly) getting through keyboard , windows correctly. happens character conveyed python layer; don't know part of tkinter well, suspect problem (e.g., if wrong type of string being generated). in other words, smells might subtle tkinter bug. (by comparison, tcl's internal notion of strings entirely unicode-aware, rely on in code rather lot , have done many years. has trade-offs, , know python's choice among trade-offs different.)

you can check further seeing exact type of string you've got. should unicode string or you'll forever having problems sort of thing (some platforms , deployments must natively deal far more 256 characters).


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -