V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Sherlockhlt
V2EX  ›  问与答

ls 中文文件输出是???

  •  
  •   Sherlockhlt · Jul 11, 2014 · 4172 views
    This topic created in 4319 days ago, the information mentioned may be changed or developed.
    终端是支持Unicode的,因为我cd的时候补全是可以补中文的,可是ls输出都是???,不知道该在哪里配置?
    3 replies    2014-07-11 10:31:37 +08:00
    randal
        1
    randal  
       Jul 11, 2014
    locale不对
    agileguo
        2
    agileguo  
       Jul 11, 2014
    export LC_ALL=zh_CN
    看看呢
    Sherlockhlt
        3
    Sherlockhlt  
    OP
       Jul 11, 2014
    @agileguo
    @randal
    原来是locale的问题,按照@agileguo的方法解决了,谢谢两位!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5620 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 09:00 · PVG 17:00 · LAX 02:00 · JFK 05:00
    ♥ Do have faith in what you're doing.