When I type non-ASCII characters using a Windows keyboard I get quot;?quot;(当我使用 Windows 键盘键入非 ASCII 字符时,我得到“?)
问题描述
当我使用 Windows 键盘(在语言栏中)键入 非 ASCII 字符时,我会在非 ASCII 字符所在的位置出现问号 ?.
When I type non-ASCII characters using a Windows keyboard (in the language bar), I get question marks ? where the non-ASCII characters should go.
复制和粘贴工作正常,Unicode 字符显示在 Text 小部件中.
Copy-and-paste works fine and the Unicode characters are displayed in the Text widget.
我正在使用 Lakota All-In-One 键盘 找到 这里.此特定键盘列在 US 区域设置下的 Windows 语言栏 中.
I am using the Lakota All-In-One keyboard found here. This particular keyboard is listed in the Windows language bar under the US locale.
推荐答案
TkInter 对特殊字符似乎不太好,尤其是在 Fedora 上.我看过几十个这样的帖子.您最好的选择可能是使用另一个 GUI 库,例如 PyFLTK(我最喜欢的),GTK+ 3(我的第二个最爱),PyQt, PySide, wxPython, Kivy等
TkInter doesn't seem too good with special characters, especially on Fedora. I've seen dozens of posts like this. Your best bet might be to use another GUI library, like PyFLTK(my favorite), GTK+ 3(my second favorite), PyQt, PySide, wxPython, Kivy, etc.
这篇关于当我使用 Windows 键盘键入非 ASCII 字符时,我得到“?"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:当我使用 Windows 键盘键入非 ASCII 字符时,我得到“?"
基础教程推荐
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
