Centos 7 中文显示乱码解决办法

    xiaoxiao2025-06-20  10

    Centos 7 中文显示乱码解决办法:

    1.      首先echo $LANG 或locale 查看系统当前使用的字符集,如果有中文支持,那么默认应该是UTF-8 字符集。

    2.      如果1中显示非utf-8的字符集,那么

    yum groupsinstall –y Fonts && yum groups install –y “Input Methods”

    之前的版本应该是yumgroupinstall “Chinese Support”,但是现在已经找不到了。

    3.      修改配置文件/etc/locale.conf,将LANG=”XX’改为LANG=”zh_CN.UTF-8”。7之前的版本此配置文件为/etc/sysconfig/i18n。

    4.      完成之后reboot系统。

    转载请注明原文地址: https://ju.6miu.com/read-1300158.html
    最新回复(0)