【问题标题】:Git bash chcp windows7 encoding issueGit bash chcp windows7编码问题
【发布时间】:2015-05-30 12:27:38
【问题描述】:

伙计们,我如何更改 Git bash 命令屏幕上的编码?

我使用的是 Windows 7,当我尝试安装任何 Ruby gem 时,我通常会遇到这个问题

$ gem install libv8 -- --with-system-v8
ERROR:  While executing gem ... (ArgumentError)
    unknown encoding name - CP720

所以当我尝试使用命令 chcp 1252 时,它给了我错误

$ chcp 1252
sh.exe": chcp: command not found

那么我如何更改 git bash 命令屏幕上的编码??

【问题讨论】:

    标签: ruby git bash


    【解决方案1】:

    这可能为时已晚,但无论如何你需要使用:

    chcp.com 1252

    因为 git bash 无法自行将 chcp 扩展为完整的可执行文件,因此您需要键入完整的命令。

    【讨论】:

      猜你喜欢
      • 2012-07-21
      • 2020-10-06
      • 2016-05-21
      • 1970-01-01
      • 2021-12-07
      • 2021-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多