Our vscode open files are utf-8 encoded by default. When we open other encoding files (such as gb2312), garbled characters will occur.
##Solution: Click File->Preferences->Settings in the vsCode menu bar, and then enter user settings on the right:"files.autoGuessEncoding": true,
The above is the detailed content of Solution to garbled files opened by vscode. For more information, please follow other related articles on the PHP Chinese website!