当前位置:网站首页>Vscode solves the problem of terminal Chinese garbled code

Vscode solves the problem of terminal Chinese garbled code

2022-07-24 12:35:00 Cwiyc

VSCODE Solve the problem of Chinese garbled code on the terminal

 vscode The terminal of the calling system is also provided by the calling system cmd, commonly cmd The coding format used is gbk, and vscode The default encoding format is UTF-8, So there will be garbled code , So how to modify cmd/vscode The coding format of the terminal ?

  Input... At the terminal chcp 65001

After input, the following figure will appear , Indicates that the coding format of the current code page has been changed to utf-8 了 , You can right-click the blank space of the command box and click properties to view , But it will recover after closing the terminal gbk, So this is only a short-term modification .

As for the permanent modification , Need to find Command Processor This thing , But I can't find it in my computer , So I can't /doge. You can have a look if you are interested original text .
原网站

版权声明
本文为[Cwiyc]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/203/202207211808588706.html