V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
MyFaith
V2EX  ›  Linux

git 克隆下来的文件中文乱码

  •  
  •   MyFaith ·
    MyFaith · Mar 4, 2017 · 3947 views
    This topic created in 3346 days ago, the information mentioned may be changed or developed.

    Python 文件,从 Windows push 到 git 上的

    3 replies    2017-03-04 17:04:31 +08:00
    lilydjwg
        1
    lilydjwg  
       Mar 4, 2017
    你的 locale 有问题吧。
    orzfly
        2
    orzfly  
       Mar 4, 2017
    PuTTY (至少以前的版本)默认好像不是 UTF-8 ……

    你需要在连 SSH 的时候改一下 PuTTY 的编码设置。
    Window -> Translation -> Character set translation -> Remote character set
    MyFaith
        3
    MyFaith  
    OP
       Mar 4, 2017
    @lilydjwg 果然配置好 locale 就可以了

    @orzfly 感谢,不是 Putty 的问题,是 locale
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2538 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:54 · PVG 16:54 · LAX 01:54 · JFK 04:54
    ♥ Do have faith in what you're doing.