What if netbeans Chinese characters are displayed as small squares under ubuntu?
This article mainly introduces "how to display netbeans Chinese characters into small squares under ubuntu". In daily operation, I believe that many people have doubts about how to display netbeans Chinese characters into small squares under ubuntu. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "how to display netbeans Chinese characters into small squares under ubuntu". Next, please follow the editor to study!
The problem may be that the Chinese font on jdk platform is not set correctly, so how to set it?
Copy / usr/share/fonts/truetype/arphic/gbsn00lp.ttf to JAVA_HOME/jre/lib/fonts/fallback/, and if there is no fallback directory, create it manually.
Netbeans garbled code
Upgrade the netbeans6.1 under widows to 6. 5. Only to find that the window name and console output are garbled, and the garbled looks the same as when Intellij Idea Svn submitted it. But netbeans cannot change the font of the default menu and window as idea does.
The solution is to modify the netbeans settings directly.
Modify netbeans_home%/etc/netbeans.conf
Add a line to the netbeans_default_options entry:
-J-Dfile.encoding=UTF-8
Let all the codes as UTF-8 will be OK, although the font is a little ugly.
At this point, the study of "how to display netbeans Chinese characters as small squares under ubuntu" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!