-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any option can change output encoding to UTF8
in DEBUG CONSOLE
panel?
#4136
Comments
Hi @Xsakura1314 , thanks for reporting issue here! And could you please set following option to check whether your issue was resolved? |
@Amy-Li03 |
@Xsakura1314 thank you for your reply! |
I find a not elegant way to solve the problem, which is change my system encoding to Thus I guess the VSCode DEBUG CONSOLE panel is still using GBK encoding instead of UTF-8 encoding when debug via CMake Tools, even though I tried to set it to UTF-8 in the CMakeLists.txt file. In fact , they are not related. I can't find an option to change the DEBUG CONSOLE panel encoding in VSCode. May need an option to change it. |
Thanks for sharing solution at here! |
Brief Issue Summary
I want to try debugging and printing some Chinese characters, but the output in the Debug Console panel is incorrect. My file encoding is utf8, system encoding is gbk. I would like to know if there is a
CMake Tools
orVSCode
configuration option can change Debug Console panel to utf8 encoding.I have already added the following statements in my
CMakeLists.txt
,CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
Enviroment
System: Windows 11(x64 23H2 GBK encoding)
Softeware:
Compiler : MSVC2019
The text was updated successfully, but these errors were encountered: