Home >Development Tools >VSCode >What to do if vscode utf-8 garbled characters

What to do if vscode utf-8 garbled characters

藏色散人
藏色散人Original
2019-11-19 09:15:465146browse

What to do if vscode utf-8 garbled characters

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:

What to do if vscode utf-8 garbled characters

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn