Solution:
1. Run the command
chcp
to view the encoding settings of cmd. The code page number of GBK2312 is 936.
2. Since the code page number corresponding to utf-8 is 65001, you can set the cmd encoding to uft-8 by executing the command
chcp 65001
.
Recommended tutorial: vscode tutorial
The above is the detailed content of Chinese garbled characters in vscode terminal. For more information, please follow other related articles on the PHP Chinese website!