1. Enter the setting option of the editor
2. Search for encoding and check Auto Guess Encoding
3. Of course, you can also specify the character set, specify the GBK character set like this
Recommended tutorial: vscode tutorial
The above is the detailed content of Chinese garbled characters appear when opening the script in vscode. For more information, please follow other related articles on the PHP Chinese website!