
1、在cmd.reg文件中设置utf8编码
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe] "CodePage"=dword:0000fde9 "FontFamily"=dword:00000036 "FontWeight"=dword:00000190 "FaceName"="Consolas" "ScreenBufferSize"=dword:232900d2 "WindowSize"=dword:002b00d2
2、在cmd中使用chcp 65001命令设置编码格式为UTF-8。
CMD 之后,命令行有时候无法显示中文,是乱码,于是我右键查看了编码,是GBK编码。如何修改为UTF-8
如果要更改为 UTF-8,则需要运行 chcp 命令:
chcp 65001
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号