Linux ubuntu 终端 ssh中文乱码解决

2020-03-04  本文已影响0人  卖点儿什么

如果中文是乱码,执行以下:

apt install -y language-pack-zh-hans

echo -e 'LANG="zh_CN.UTF-8"'>>/etc/environment

echo -e 'LANGUAGE="zh_CN:zh:en_US:en"'>>/etc/environment

echo -e 'en_US.UTF-8 UTF-8'>>/var/lib/locales/supported.d/local

echo -e 'zh_CN.UTF-8 UTF-8'>>/var/lib/locales/supported.d/local

echo -e 'zh_CN.GBK GBK'>>/var/lib/locales/supported.d/local

echo -e 'zh_CN GB2312'>>/var/lib/locales/supported.d/local

locale-gen

如果空格也是乱码,执行以下:

apt install -y fonts-droid-fallback ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-arphic-uming

上一篇下一篇

猜你喜欢

热点阅读