Let eclipse ubuntu in support of GBK coding

Ubuntu is not supported by default GBK coding. So, first we must first make Ubuntu support GBK, as follows:

  1. Modify /var/lib/locales/supported.d/local file, add in the file
    zh_CN.GBK GBK
    zh_CN.GB2312 GB2312
  2. sudo dpkg-reconfigure --force locales
    Then will appear in the printed output
    zh_CN.GB2312 done
    zh_CN.GBK done

In this way, Ubuntu supports the GBK encoding, the following settings eclipse.
First Windows-> Preferences, then select General following Workspace. Text file encoding selection Other GBK, GBK if there is no option, it does not matter, direct input GBK three letters, Apply, GBK coded Chinese, is not garbled.

Original: https://blog.51cto.com/leaze/195584

 

Guess you like

Origin www.cnblogs.com/icefree/p/11105441.html