DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Add GBK Charset on Ubuntu Server


  1. Add following items into /var/lib/locales/supported.d/local:

    zh_CN.GBK GBK
    zh_CN.GB2312 GB2312
    
  2. sudo dpkg-reconfigure --force locales (or simple use sudo locale-gen zh_CN?)

  3. sudo update-locale LANG=zh_CN

Verify: locale -a, you can see "zh_CN.gb2312" and "zh_CN.gbk" in lists.



Published

Feb 27, 2014

Last Updated

Feb 8, 2018

Category

Tech

Tags

  • charset 4
  • GBK 4
  • Ubuntu 61

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor