Geeker
V2EX  ›  问与答

Mac OS 如何修改 locale?

  •  
  •   Geeker · Feb 26, 2014 · 6271 views
    This topic created in 4470 days ago, the information mentioned may be changed or developed.
    之前用中文版系统zsh不会出现中文变成?????????的问题。。(此时的Locale都是=zh_CN的)

    换成英文版后就出现了乱码问题,按照这篇文章
    http://cloudstack.blog.163.com/blog/static/18769811720140343617406/
    的方法修改之后无用。。locale还是
    LANG=
    LC_COLLATE="C"
    LC_CTYPE="C"
    LC_MESSAGES="C"
    LC_MONETARY="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_ALL=

    请问一下各位,到底是在哪修改这个。。
    3 replies    2018-03-23 19:50:53 +08:00
    ShadowStar
        1
    ShadowStar  
       Feb 26, 2014
    在~/.zshrc中添加
    export LANG="zh_CN.UTF-8"
    export LC_ALL="zh_CN.UTF-8"
    Geeker
        2
    Geeker  
    OP
       Feb 26, 2014
    @ShadowStar 之前就试过。。无效
    coderbean
        3
    coderbean  
       Mar 23, 2018
    遇到了同样的问题,无奈改回了中文系统
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2956 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 13:00 · PVG 21:00 · LAX 06:00 · JFK 09:00
    ♥ Do have faith in what you're doing.