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.