Windows10cmd编码格式改为UTF-8

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hiwoshixiaoyu/article/details/83374914

按下快捷键Win+R,输入regedit打开注册变编辑器,依次找到
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor,右键新建一个字符串值(S), 取名叫Autorun,值设为@chcp 65001>nul,确定保存退出。
重新运行程序便可以正确的显示中文了。

猜你喜欢

转载自blog.csdn.net/hiwoshixiaoyu/article/details/83374914