• 修改注册表如下:
    修改CodePage字段为65001(10进制)
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console]
"CodePage"=dword:0000fde9

[HKEY_CURRENT_USER\Console\C:_Program Files_PowerShell_7_pwsh.exe]
"CodePage"=dword:0000fde9

[HKEY_CURRENT_USER\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe]
"CodePage"=dword:0000fde9

[HKEY_CURRENT_USER\Console\%SystemRoot%_SysWOW64_WindowsPowerShell_v1.0_powershell.exe]
"CodePage"=dword:0000fde9

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell]
"Autorun"="chcp 65001"
;"CodePage"=dword:0000fde9
;"CodePage"= -

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"Autorun"="chcp 65001"
;"CodePage"=dword:0000fde9
;"CodePage"= -