Modify the cmd encoding method

Modify the cmd encoding method

Temporary settings
:: 设置UTF-8
chcp 65001
:: 设置简体中文(GBK)
chcp 936 
permanent modification

1. Press "win+R" or click the start menu, find Run, enter "regedit" in the run input box, and open the registry editor
insert image description here
2. Locate to: HKEY_CURRENT_USER\Console%SystemRoot%_system32_cmd.exe
At this time, you can look at it Is there a CodePage file? If there is no CodePage, you can right-click -> New -> DWORD (32-bit) value to create it.
insert image description here
3. Double-click the code, fill in the corresponding code value in the value, select decimal and click OK. insert image description here
4. Then enter chcp in the command window to directly view the current encoding format.
insert image description here

Guess you like

Origin blog.csdn.net/number_cmd9/article/details/122930714