Home>Article>Development Tools> Chinese garbled characters in vscode terminal

Chinese garbled characters in vscode terminal

王林
王林 Original
2019-11-09 14:07:01 6009browse

Chinese garbled characters in vscode terminal

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!

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