Sherlockhlt
V2EX  ›  问与答

ls 中文文件输出是???

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