解决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