Modify the cmd encoding to UTF-8

1. View the encoding method of the current window.
Win+r input cmd, input chcp
insert image description here
655001: represents UTF-8 encoding,
936: represents GBK encoding.

2. Modify the cmd encoding to UTF-8
1) Temporary modification.
Enter chcp 65001 to change the encoding form of the current window to UTF-8;
2) Permanent modification.

Open the registry:
win+R, enter regedit,
insert image description here
search for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor,
right click, create new -> string value
and name it "autorun";
click right click to modify, fill in the value data "chcp 65001"
insert image description here
and click OK to modify .

Refer to the original link:
https://jingyan.baidu.com/article/d7130635e8a38413fdf4753b.html

Guess you like

Origin blog.csdn.net/mantou_riji/article/details/122313517#comments_25637534