Chinese in console's build log is displayed in garbled code
已回答
Hi, I am a beginner learning c++, I have some trouble in encoding. My english is not good, sorry.
platform: windows 10
system languege: Chinese
system encoding: GBK
In Clion settings, I set the editor's Global Encoding and Project Encoding in uft-8 and set console's encoding in gbk in order to output Chinese normally. However, if I write some code with some bug, the build log still output with garbled code.
How could I get normally output ?(I tested my code in VS2017, the build log can be normally displayed, and I notice the link.exe used by Clion is the same one used by VS2017)
My stupid code with bug here:https://paste.ubuntu.com/p/HB753n4g49/
Here is Clion's output.

Here is VS2017's output.

Here are my settings:


请先登录再写评论。
Hello!
>set console's encoding in gbk
In the Status Bar you can change encoding of the current file in the editor, not the console's encoding. So you've set GBK for the main.cpp file.
Have you tried settings Global Encoding and Project Encoding to GBK? If it doesn't help, please create an issue in https://youtrack.jetbrains.com/issues/IDEA.