如果中文是乱码,执行以下:
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
网友评论