命令 "chcp 65001" 可以在 Windows 7 中工作吗?

Can the command "chcp 65001" work in Windows 7?

因为语言的原因,想用chcp 65001让命令window变成英文,调用systeminfo获取数据

但是,在使用 chcp 65001 之后使用 Windows 7 程序 systeminfo 找不到任何东西,而是显示错误:

OS Name: A device attached to the system is not functioning

Windows 7 不支持 chcp 65001 吗?

  • 是:chcp.com 存在于 Windows 7. x32 和 x64 上。
  • 支持:支持65001参数设置UTF-8编码页

但是,这对您几乎没有帮助,因为控制台中的此代码页不支持许多内容。参见 How to use unicode characters in Windows command line?