zoukankan      html  css  js  c++  java
  • gitk中文乱码问题处理

     执行了

    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 果然一切正常了!真是个奇葩的问题!

  • 相关阅读:
    Git Bash关键命令
    一个不需要Log4Net的写日志的简单方法
    未知软件
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
  • 原文地址:https://www.cnblogs.com/rangeon/p/7609446.html
Copyright © 2011-2022 走看看