Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
MyFaith
V2EX  ›  Linux

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

  •  
  •   MyFaith ·
    MyFaith · Mar 4, 2017 · 4056 views
    This topic created in 3435 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   ·   928 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.