Solution to garbled Chinese characters in Android studio

Solution to garbled Chinese characters in Android studio



I will write it down quickly! ! !

Recently I was working on the Android SDK, and then I opened an official demo, and found that the Chinese comments were all garbled. Isn't this GG? I can’t read the comment, I almost vomit when I see it, and then there is no way to solve this problem.

First, I found many methods on the Internet and found that it was to modify the encoding method in the lower right corner. As a result, it was of no use. A large area of ​​the Internet (searched directly by the browser) is this method. As a result, they are all the same punctuation. I copied and pasted each other, and I was vomiting. I didn’t get any results yesterday. Then I tried today to see if it has something to do with the version of Android studio. I checked the version number of my Android studio and found it was 4.0.1 ( check the version number) The method: menu bar -> help -> about), and then to CSDN to find the root cause

Reason: It turns out that most of the new versions of Android studio have this problem, and the reason is that there is no fallback font:

There are two things to modify :
1. Set->Editor->Font to modify Fallback font to simsun Song Ti.
2. Set->Editor->Color Scheme->Color Scheme Font to modify Fallback font to simsun Song Ti (I don’t do this step. Ok)
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45386875/article/details/113613859