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

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

  •  
  •   MyFaith ·
    MyFaith · Mar 4, 2017 · 4229 views
    This topic created in 3560 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
    lilydjwg
    Mar 4, 2017
    1
    你的 locale 有问题吧。
    orzfly
    orzfly
    Mar 4, 2017
    2
    PuTTY (至少以前的版本)默认好像不是 UTF-8 ……

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

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