V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
MyFaith
V2EX  ›  Linux

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

  •  
  •   MyFaith ·
    MyFaith · 2017-03-04 15:53:44 +08:00 · 3427 次点击
    这是一个创建于 2603 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Python 文件,从 Windows push 到 git 上的

    3 条回复    2017-03-04 17:04:31 +08:00
    lilydjwg
        1
    lilydjwg  
       2017-03-04 15:58:44 +08:00
    你的 locale 有问题吧。
    orzfly
        2
    orzfly  
       2017-03-04 16:43:26 +08:00
    PuTTY (至少以前的版本)默认好像不是 UTF-8 ……

    你需要在连 SSH 的时候改一下 PuTTY 的编码设置。
    Window -> Translation -> Character set translation -> Remote character set
    MyFaith
        3
    MyFaith  
    OP
       2017-03-04 17:04:31 +08:00
    @lilydjwg 果然配置好 locale 就可以了

    @orzfly 感谢,不是 Putty 的问题,是 locale
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2801 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:37 · PVG 19:37 · LAX 04:37 · JFK 07:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.