The iTerm2 under Mac cannot display the Chinese characters in the git information after connecting to the server.

clipboard.png

I changed the system language of this machine to English, and then after connecting to the server, I used git to cut branches and pull the code. As long as I needed to display Chinese, it all turned into a bunch of question marks. git log if you look at the log, all the Chinese content becomes < E7 > < BC > < 96 > < E8 > < AF > < 91 > . The Chinese shown in the above picture is the output Chinese in the release script, which can be displayed normally. How can I properly display the Chinese language related to git ?

Mar.20,2021
Menu