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
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.
3. Double-click the code, fill in the corresponding code value in the value, select decimal and click OK.
4. Then enter chcp in the command window to directly view the current encoding format.