Reputation: 39
When I use git commands on the Terminal, why are the Chinese characters not displayed properly?
Here's an example:
Upvotes: 1
Views: 2003
Reputation: 2635
First, add the below line to ~/.bash_profile:
export LANG=en_US.UTF-8
Finally, reboot your IDE
Upvotes: 3
Reputation: 7
Add this line into ~/.bash_profile or ~/.zshrc
export LANG=en_US.UTF-8
Upvotes: 0
Reputation: 63
I met this issue too. Just change my terminal language environment to en_US.UTF-8
, this issue was gone. Hope my workaround help you.
Upvotes: 0
Reputation: 29674
It may be a font issue.
In Android Studio, try going to Settings
> Editor
> Console Font
, then in the Primary Font
dropdown, try selecting a different font. (You may have to Save As
a custom scheme to select a non-default font.)
On my Mac, the Menlo font displays Chinese characters of git log
OK.
Upvotes: 1