For compiled programs, Chinese characters are not displayed correctly when CMD and power shell are running.
Online Search, you can re-order the window to modify:
1. Open the CMD.exe command Line window
2, change the code page through the chcp command, UTF-8 code page 65001
Chcp 65001
After you do this, the code page becomes UTF-8.
The current window does solve the problem, but the re-opened CMD window or power shell window still does not display the kanji correctly .
Finally, the CMD's property settings can be modified in the registry to make one modification always valid:
1. win+r Enter regedit to enter the registration form
2. Find Hkey_current_user\console\%systemroot%_system32_cmd.exe If the codepage item already exists under this key, change the value to decimal "65001", or if it does not exist, create a new DWORD (32-bit value), named "CodePage", with the value set to "65001"
3. Effective after restarting CMD
4. For power shell modifications, just modify the 2nd step
The item under%systemroot%_system32_windowspowershell_v1.0_powershell.exe.
Appendix:
MS-DOS provides character sets for the following countries and languages:
Code page description
1258 Vietnamese
1257 the Baltic language
1256 Arabic
1255 Hebrew
1254 Turkish
1253 Greek
1252 Latin 1 characters (ANSI)
1251 Cyrillic language
1250 Central European languages
950 Traditional Chinese
949 Korean
936 Simplified Chinese (default)
932 Japanese
874 Thai
850 Multi-lingual (MS-DOS Latin1)
437 MS-DOS American English
Once permanently resolve CMD window Kanji display garbled