美文网首页
Cmder 中文乱码

Cmder 中文乱码

作者: saronic | 来源:发表于2018-11-09 09:29 被阅读16次

ls 命令显示文件名是

右键打开设置; Startup->Environment; 添加 set LANG=zh_CN.UTF-8

git status时中文文件名乱码

执行以下命令即可:git config --global core.quotepath false

git log 查看提交中含中文乱码

修改git全局配置设置提交和查看日志编码都是utf-8

git config --global i18n.commitencoding utf-8 
git config --global i18n.logoutputencoding utf-8

修改git目录下etc\profile文件,设置less的字符集为utf-8
export LESSCHARSET=utf-8
修改cmder目录vendor\init.bat文件,添加以下代码,设定cmder编码为utf-8
@chcp 65001 > nul

相关文章

网友评论

      本文标题:Cmder 中文乱码

      本文链接:https://www.haomeiwen.com/subject/sqjnxqtx.html