window10 设置 cmd 与 PowerShell 终端乱码问题

当vscode运行项目时总会乱码:
window10 设置 cmd 与 PowerShell 终端乱码问题

根本上解决方法:
win + R键 输入 regedit 进入:
window10 设置 cmd 与 PowerShell 终端乱码问题
如果进入不了就去下载 :regedit

cmd
接下来我们进入对应目录添加对应字符串:
window10 设置 cmd 与 PowerShell 终端乱码问题
好了我们重启vscode运行即可
window10 设置 cmd 与 PowerShell 终端乱码问题

PowerShell:
原CodePage数值数据:
window10 设置 cmd 与 PowerShell 终端乱码问题
更改CodePage数值数据:
window10 设置 cmd 与 PowerShell 终端乱码问题

window10 设置 cmd 与 PowerShell 终端乱码问题