NetBeans Chinese garbled Solution

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.