beng大佬:
buyvm的ubuntu都中文乱码
百度了修复教程,基本都是一样的,操作后发现还是不行
教程关键字
- sudo locale-gen
- zh_CN.UTF-8 UTF-8
- zh_CN.UTF-8 UTF-8
- en_US.UTF-8 UTF-8
- zh_CN.GB18030 GB18030
- zh_CN.GBK GBK
求个解决方案 或DD脚本?
teolinkiat大佬:
执行 locale-gen zh_CN.UTF-8
执行 vi /etc/default/locale 粘贴以下内容
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8
执行update-locale LANG=zh_CN.UTF-8
执行reboot
评论前必须登录!
注册