Clion Chinese garbled solution

Problem Description

Use clion to output Chinese and English. English can be output normally, but the following garbled characters appear in Chinese:

 Solution

Step 1: Click File --> Settings --> Editor --> File Encodings, find the following interface, change the encoding marked in the picture to UTF-8, and click OK;

 Step 2: Change the UTF-8 in the lower right corner of the interface to GBK encoding; as shown below:

 Step 3: After the second step, the following interface pops up, select "Convert";

 Rerun to see results

problem solved! 

Make up the word count

Since the word count of the article is a bit short, I have to write this line, otherwise it won’t be published!

Guess you like

Origin blog.csdn.net/m0_51260564/article/details/126710512