PowerShell控制台字体设置

1、打开注册表: HKEY_CURRENT_USERConsole\%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(更换到中文环境)

原文地址:https://www.cnblogs.com/litifeng/p/9162099.html