在windows的Git Bash中查看git log,日志记录都是中文的,gui设置的也是utf-8编码。
提交的日志记录,在gitlab中查看也都是正常的。
如图所示:
但是如果用xshell工具连接vagrant(此项目目录在windows和vagrant中是共享的),进入项目目录,输入git log,中文部分却显示的是乱码。
如图所示:
但是该项目在服务器上,查看git log,日志中的中文部分都显示正常。
请问有什么办法能解决xshell中查看vagrant中的git log中文乱码问题?
Try setting the xshell encoding to utf-8
Solved.
Solution:
I found the answer on the Internet. At first I thought the author didn’t explain it clearly and didn’t say in which directory to execute this command. I didn’t expect that after I executed this command in any directory, the git log log and Chinese were displayed normally. .