runcelim
V2EX  ›  macOS

请问各位 V 友,OS X 英文环境下,如何解决中文乱码问题?比如中文文件名在 shell 中 ls 显示乱码;vim 输入中文乱码,大家有什么好的解决办法?

  •  
  •   runcelim · May 11, 2014 · 6457 views
    This topic created in 4407 days ago, the information mentioned may be changed or developed.
    我的vim中文输入编码解决方法,.vimrc中添加
    set encoding=utf-8
    set fileencoding=utf-8
    set fileencodings=utf-8,gbk
    1 replies    2014-05-11 12:07:54 +08:00
    lululau
        1
    lululau  
       May 11, 2014   ❤️ 1
    echo -e '\nexport LANG=zh_CN.UTF-8' >> ~/.bashrc
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1268 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 17:39 · PVG 01:39 · LAX 10:39 · JFK 13:39
    ♥ Do have faith in what you're doing.