应用程序输出中的Qt Creator国家符号

Qt Creator national symbols in Application Output

提问人:Vladimir Bershov 提问时间:3/13/2023 更新时间:3/13/2023 访问量:108

问:

Windows 10 x64,系统显示语言为英语(美国),还安装了俄语语言包。

msvc 2019,叮当声,Qt Creator 9.0.2在应用程序输出中以不可读的形式显示俄语符号。如何解决这个问题?

enter image description here

enter image description here

C++ Qt Unicode UTF-8 QT-创建者

评论

1赞 JosefZ 3/13/2023
请不要在最小的可重现示例中使用代码/数据/错误的(唯一)图像。复制实际文本,将其粘贴到问题中,然后将其格式化为代码。
1赞 JosefZ 3/13/2023
你面临一个 mojibake 案例(在 Python 中的例子,因为它的普遍可理解性):返回 ...'Çàïîëíåíèå êýøåé'.encode( 'cp1252').decode( 'cp1251')Заполнение кэшей

答:

0赞 Vladimir Bershov 3/13/2023 #1

通过将“工具的文本编解码器”设置为“windows-1251”来修复:

enter image description here