Clion console Chinese output garbled characters

1. Click [file] - [New Project Settings] - [Setting New Project] to set the global settings of Clion's new project. 2.
Insert image description here
Set the encoding method of several files as shown in the figure to [UTF-8].
Insert image description here
At this time, the console The output is still garbled.
3. Shortcut Ctrl+Shift+Alt+/, select Registry
Insert image description here
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. .
Insert image description here

Guess you like

Origin blog.csdn.net/YSA_SFPSDPGY/article/details/132371890