1、打开注册表: HKEY_CURRENT_USER\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe 

2、找到键值: CodePage ,将数据改为:437(注意10进制)。

3、这样就该后,只有直接打开powershell.exe才生效,使用快捷方式打开就不行。

4、通过win+r运行: powershell 的方式打开。

5、参考:https://www.zhihu.com/question/49306773

PS,英语:437,中文:936,utf-8:65001

chcp命令可以更换语言环境,例如:chcp 437(更换到英语环境),chcp 936(更换到中文环境)

相关文章:

  • 2021-11-04
  • 2021-12-14
  • 2021-08-23
  • 2021-07-17
  • 2022-01-14
猜你喜欢
  • 2021-12-06
  • 2021-12-22
  • 2021-11-30
  • 2022-12-23
  • 2021-10-23
  • 2021-07-25
  • 2022-01-01
相关资源
相似解决方案