Clion Chinese character encoding garbled problem solving

All encoding methods can be set to the same encoding, and can be set to utf-8, GBK, etc. at the same time.

For example, set the encoding method to utf-8 here:

Set the file encoding inside to utf-8:

insert image description here
Set the external file encoding to utf-8:
insert image description here

Guess you like

Origin blog.csdn.net/qq_43871241/article/details/129073144