The lower right corner of the vs code interface displays the character source code used to parse the current file (the default is UTF-8), click there
The default file character encoding of vscode is utf-8. This property can be modified in user settings, such as: files.encoding":"gbk"
Complete!
Recommended related article tutorials :vscode tutorial
The above is the detailed content of Solve the problem that the encoding in the vscode project does not recognize Chinese. For more information, please follow other related articles on the PHP Chinese website!