Home >Development Tools >VSCode >Garbled characters appear when running js files in vscode

Garbled characters appear when running js files in vscode

王林
王林Original
2020-02-12 14:34:0713013browse

Garbled characters appear when running js files in vscode

The error is as shown in the picture:

Garbled characters appear when running js files in vscode

Solution:

If the Chinese characters are garbled, you can go to the settings Check the "Auto Guess Encoding" item, as shown in the figure:

Garbled characters appear when running js files in vscode

(If this is not the case, it may be because Node.js is not installed and the Node.js environment is not configured. )

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of Garbled characters appear when running js files in vscode. 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