What if the git diff and git log commands display Chinese as hexadecimal under CMD?

how to solve the problem that the git diff command displays Chinese as buff, under CMD?
as shown in figure

clipboard.png
:

clipboard.png

CMDGIT BASH:

clipboard.png

PS:CMDUTF-8

clipboard.png

but because I am used to using CMD, a rookie, I would like to ask how to solve it?

Git
Oct.26,2021

says that the Git for windows version is not compatible with CMD, so you can only use git bash instead of < span class= "emoji emoji-smile" >


I use cmder, that is, export LESSCHARSET=utf-8 under conemu,liunx, set LESSCHARSET=utf-8 can be solved under win, and the permanent solution under win is to create a new environment variable LESSCHARSET=utf-8.


export LANG=zh_CN.UTF-8

Menu