Today from the window cut mac,git use various problems. Typically, git commit can use Chinese comments, but using git log to see the time is garbled, garbled effect is as follows:
<B1><E0><BC><AD><B2><E2><CA><D4><D3><C3><C0> <FD>
However, there is no pressure in English.
Then online a disorderly find, a lot of blog said set git config--global core.quotepath false can, and then in terminal run git config--global core.quotepath false 。 Then run git log to find Chinese or garbled.
What is the reason for this? Others set up all OK, and then think about the next, is not the reason I installed the oh-my-zsh.
And then search the Internet oh-my-zsh not support the Chinese article, and then find the solution is as follows:
1. Open the Oh-my-zsh configuration file ~/.ZSHRC.
2. Add the following code to the last side of the file:
Export Lc_all=en_us. UTF-8 export Lang=en_us. UTF-8
3. Restart the terminal (terminal) or enter the source ~/.ZSHRC
Sure enough, everything is OK.
Git Chinese garbled on Mac