Article Title: NetBeans Chinese garbled solution. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
InWindowsAndLinux (Fedora/Ubuntu/RedHat)Installed inNetBeansYou will encounter problems such as garbled menus. Here we will show you how to solve the problem of garbled characters in Chinese, includingWindows,Fedora,UbuntuLowerNetBeansChinese garbled code solution.
I,WindowsLowerNetBeansChinese garbled code Solution
LFind yourNetbeansUnder the installation directoryEtcFolder
LOpen with notepadNetbeans. conf
LFindNetbeans_default_options (Not the last one with periods...),At the end of its attribute(Less than colon)Add a space,In additionJ-Dfile.encoding = UTF-8
II,Fedora NetBeansChinese garbled code Solution
LCopy/Usr/share/fonts/zh_CN/TrueTypeInTtfFile to yourJDKUnder the installation directoryJre/lib/fonts/fallbackIf"JavaInstallation Directory/Jre/lib/fonts"No"Fallback"This directory can be created manually.
LIf not, openNetbeansIn/Home/www.dengchao.org/netbeans- 6.5.1 /Etc/netbeans. conf.
LFindNetbeans_default_optionsThis item (note that it is not followed by #, which is a comment ).
LAdd (Space) at the end)-J-Duser.language = zh-J-Duser.country = CNs-J-Dfile.encoding = UTF-8
III,Ubuntu NetBeansChinese garbled code Solution
LIn$ JAVA_HOME/jre/lib/fontsCreate a directory namedFallbackDirectory
LPlace a Chinese fontFallbackDirectory,You canUbuntuFont directory(/Usr/share/fonts)Copy or useLnCommand to make a hard link to this directory (note: the soft link is invalid)
LRun againNetBeans (or NetBean)You can.
Okay,Windows,Fedora,UbuntuLowerNetBeanHere is the solution to Chinese Garbled text. If you have any questions, leave a message below. I willMailReply to you.