Home / Gadget Insights

vs terminal Chinese garbled how to solve

time:2024-10-05 08:03:02 Gadget Insights

The Chinese output by the vs code terminal is garbled, how to deal with it? (has it been changed to UTF-8 or is it so)?

A simple and straightforward way is to convert all the files to GBK encoding, which is more cumbersome.

Another way is to temporarily set our cmd encoding to UTF-8.

Here I mention a command statement chcp, which can see how cmd is encoded, and can also modify its encoding.

 GBK2312 code page number is 936

《vs terminal Chinese garbled how to solve》 This does not represent the views of this website. If there is any infringement, please contact us to delete it.

Ranking

Digital Insights