Home  >  Q&A  >  body text

中文乱码 - linux乱码

PHP中文网PHP中文网2729 days ago835

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 13:20:23

    Modify /etc/sysconfig/i18nFile
    Change to:

    LANG="en_US.UTF-8"
    

    UPDATE:
    After some discussion, the solution to the problem is
    http://www.jianshu.com/p/459f2784600c

    reply
    0
  • 迷茫

    迷茫2017-04-17 13:20:23

    Why not use UTF-8? If you must use GBK, please ensure that the terminal encoding is also GBK.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 13:20:23

    archlinux wiki -- beginners' guide#locale:

    # echo LANG=en_US.UTF-8 > /etc/locale.conf
    Warning: It is not recommended to set any Chinese locale here, or it may cause tty garbled characters.

    reply
    0
  • Cancelreply