Table of contents
2.2 Then return to the interface and change the one shown in the figure to GBK.
2.3 At this point, if a pop-up window appears, select Convert
1 Introduction
When I was using CLion today, I found Chinese garbled characters in the compiled program. It took me a long time to finally solve it. I would like to make a note here.
2. Solution
2.1 When the above Chinese garbled characters appear, we select File--->>Setting--->>File Encodings, and then set Globe Encoding and Project Encoding to UTF-8.
2.2 Then return to the interface and change the one shown in the figure to GBK.
2.3 At this point, if a pop-up window appears, select Convert
2.4 At this point, when running the program, you will find that the problem is solved. I hope everyone has to help.