码迷,mamicode.com
首页 > 其他好文 > 详细

gitk中文乱码问题处理

时间:2017-09-29 10:05:01      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:glob   编码   字体   class   comm   output   UI   奇葩   file   

 执行了

1 git config --global gui.encoding utf-8

查看 %USERPROFILE%\.gitconfig 文件中也有

1 [gui]
2   encoding = utf-8

在 git gui 和 gitk 中也设置了 utf-8 编码和中文字体,但是在 gitk 中查看 comment 中文信息还是乱码。

然后添加 [i18n] 配置:

1 [i18n]
2   commitencoding = utf-8

问题依旧,中文还是显示乱码。

最后发现 [i18n] 中还有一项配置:

1   logoutputencoding = utf8

怀疑是这个 utf8 的问题,改为 utf-8 果然一切正常了!真是个奇葩的问题!

 

gitk中文乱码问题处理

标签:glob   编码   字体   class   comm   output   UI   奇葩   file   

原文地址:http://www.cnblogs.com/rangeon/p/7609446.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!