terminal icon indicating copy to clipboard operation
terminal copied to clipboard

git log cannot print correct chinese charecter

Open shinegrin opened this issue 6 years ago • 1 comments

I'm running powershell with windows terminal, with ENV LESSCHARSET=utf-8 and gitconfig as following:

[difftool "sourcetree"]
	cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
	cmd = "'' "
	trustExitCode = true
[i18n]
	commitencoding = utf-8
	logoutputencoding = utf-8
[core]
	quotepath = false
[gui]
	encoding = utf-8

It works well when i using powershell without windows terminal. Anyone knows how to fix it?

shinegrin avatar Jul 15 '20 09:07 shinegrin

for followers who met this problem please see

添加系统变量 LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 其实添加其中一个就行

zero2hj avatar Aug 25 '20 03:08 zero2hj