Chaojie Liang
Chaojie Liang

Reputation: 39

Why can't my Android Studio terminal display Chinese characters?

When I use git commands on the Terminal, why are the Chinese characters not displayed properly?

Here's an example:

example

Upvotes: 1

Views: 2003

Answers (4)

Benchur Wong
Benchur Wong

Reputation: 2635

First, add the below line to ~/.bash_profile:

export LANG=en_US.UTF-8

First step

Second step

Finally, reboot your IDE

Upvotes: 3

Staven Gong
Staven Gong

Reputation: 7

Add this line into ~/.bash_profile or ~/.zshrc

export LANG=en_US.UTF-8

Upvotes: 0

cnbleu
cnbleu

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

Gino Mempin
Gino Mempin

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

Related Questions