What to do if vscode utf-8 is garbled?
Exception reason: VSCODE opens files in UTF-8 encoding by default. If you encounter encodings such as GB18030, GBK, etc., garbled characters will be displayed.
The solution is as follows:
A once and for all solution:
Add: "files.autoGuessEncoding":true to the settings file to automatically identify the character encoding.
ps: a: This setting may require the latest version of VScode, because I am currently using the latest version, so the display will be normal immediately after modification.
The currently used version information is as follows:
b: Set the file opening location: File--.>Preferences-->Settings--> ;user settings.
The above is the detailed content of What to do if vscode utf-8 garbled characters. For more information, please follow other related articles on the PHP Chinese website!