- First of all, why there are garbled characters, because of the encoding problem of your files and software
- Many people will choose to modify the code in the software, in fact, this is a very cumbersome operation
- Is there a simple common solution to file and software encoding issues?
- Instead of modifying the code in the software, it is better to modify the code of the file to make it consistent with the software. The following will introduce
- Use the original computer notepad to solve the problem
The Notepad provided by Windows can actually modify the file encoding , the operation is as follows:
Right-click the file, select Open With , and open it with Notepad
Click on file, select save as
Then there is an encoding drop-down box below, if your software is UTF-8 (such as idea software ), then select UTF-8, if your software is GBK encoding (such as EditPlus software ), then select ANSI
After saving and opening the software, you will find that the garbled characters have been solved, and the process is very simple! ! !