cmd乱码问题怎么解决
时间: 2023-09-24 08:12:40 浏览: 140
解决cmd乱码问题有两种方法。第一种是临时修改编码方式,可以在命令行输入"chcp 65001",将编码格式改为UTF-8。这样可以解决当前会话中的乱码问题。\[2\]第二种是永久修改编码方式,可以通过注册表进行设置。首先按下Win键+R,输入"regedit"并确定,然后找到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor路径。在该路径下右键点击,选择"新建",然后选择"字符串值"。将新建的字符串值命名为"autorun",然后右键点击修改,将数值数据填写为"chcp 65001",并确定。这样每次打开cmd命令窗口时,编码都会被自动修改为UTF-8,解决了乱码问题。\[3\]
#### 引用[.reference_title]
- *1* [cmd中文乱码解决方案](https://blog.csdn.net/weixin_46505978/article/details/125144422)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [快速解决cmd命令行乱码问题](https://blog.csdn.net/lixiaoping666/article/details/116715579)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文