1. Click [file] - [New Project Settings] - [Setting New Project] to set the global settings of Clion's new project. 2.
Set the encoding method of several files as shown in the figure to [UTF-8].
At this time, the console The output is still garbled.
3. Shortcut Ctrl+Shift+Alt+/, select Registry
and uncheck the checkbox under value after [run.process.with.pty], and then run the code program again. The Chinese display on the console is normal. .
Clion console Chinese output garbled characters
Guess you like
Origin blog.csdn.net/YSA_SFPSDPGY/article/details/132371890
Ranking