[Email protected]:~$ gedit/var/lib/locales/supported.d/local
Add to:
Zh_cn. GBK GBK
Zh_cn. GB2312 GB2312
Terminal execution command: sudo dpkg-reconfigure--force locales
Generating 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 ... done
Generation complete.
In this way, Ubuntu supports GBK encoding, and the following begins to set up Eclipse,
First select Windows->preferences in the Eclipse menu bar, then select Workspace under General, Text file encoding under other GBK, if there is no GBK option, it's okay, Direct input GBK Three letters, Apply, GBK encoded in Chinese, is no longer garbled.
"Linux/ubuntu Learning 10" unbuntu the solution of Eclipse Chinese garbled