I am a beginner. I initially used the txt that comes with the windows system to write code. Because default_charset = "gb2312" has been configured in php.ini, Chinese can be displayed normally. I have learned to use Sublimt txt3 to write code in the past two days. It is indeed very convenient, but there is a problem. Although the software chooses to save using utf-8, the Chinese characters in the browser display garbled characters. If I use txt to write, it can be displayed normally. ! I also found a solution online, which is to add a character setting code to the code, but does anyone know how to set Sublimt so that it can be written like the code written in txt and display Chinese directly?
The file encoding is wrong. The file encoding should be changed to ANSI Chinese encoding format. .
Develop a good habit of using utf8. Do not use other encodings
Browser settings encoding utf8