环境是cygwin,git提交是可以用中文,但是显示log却乱码 git的全局配置如下 单独配置 cygwin语系配置如下
光阴似箭催人老,日月如移越少年。
export LESSCHARSET=utf-8
First of all, it is recommended to check whether the version of Cygwin is 1.7.x. This version of Cygwin can already display and input Chinese very well and does not require additional configuration.
In my Cygwin, the locale configuration is:
$ locale LANG=zh_CN.UTF-8 LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_MESSAGES="zh_CN.UTF-8" LC_ALL=
Note that the setting of LC_ALL is different from yours. It is recommended to try modifying it. Good luck.
git config --global core.quotepath false
http://blog.fealdia.org/2010/01/16/git-status-utf-8-umlaut-tip/
First of all, it is recommended to check whether the version of Cygwin is 1.7.x. This version of Cygwin can already display and input Chinese very well and does not require additional configuration.
In my Cygwin, the locale configuration is:
Note that the setting of LC_ALL is different from yours. It is recommended to try modifying it. Good luck.
http://blog.fealdia.org/2010/01/16/git-status-utf-8-umlaut-tip/