解決ubuntu下終端無法正確顯示GBK編碼的問題

開啟配置檔案

# vim /var/lib/locales/supported.d/zh-hans

新增如下兩行內容

zh_CN.GBK GBK
zh_CN.GB2312 GB2312

應用設定

# dpkg-reconfigure --force locales

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Code