Solve Chinese garbled characters in eclipse under unbuntu

Source: Internet
Author: User

Solve Chinese garbled characters in eclipse under unbuntu
Wangdd @ wdd-pc :~ $ Gedit/var/lib/locales/supported. d/local Add: zh_CN.GBK GBKzh_CN.GB2312 GB2312 terminal run the command: sudo dpkg-reconfigure -- force localesGenerating locales... en_AG.UTF-8... done en_AU.UTF-8... done en_BW.UTF-8... done en_CA.UTF-8... done en_DK.UTF-8... done en_GB.UTF-8... done en_HK.UTF-8... done en_IE.UTF-8... done en_IN.UTF-8... done en_NG.UTF-8... done en_NZ.UTF-8... done en_PH.UTF-8... done en_SG.UTF-8... Done en_US.UTF-8... up to-date en_ZA.UTF-8... done en_ZM.UTF-8... done en_ZW.UTF-8... done zh_CN.GB2312... done zh_CN.GBK... doneGeneration complete. in this way, Ubuntu supports GBK encoding. Next, set eclipse. First, select Windows> Preferences in the eclipse menu bar, then select Workspace under General, and select Other GBK under Text file encoding, if you do not have the GBK option, it doesn't matter. Simply enter three GBK letters, which are in the Apply and GBK encoding Chinese. It's no longer garbled.

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.