本文介绍了git bash chcp Windows7编码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家如何在Git bash命令屏幕上更改编码?

Guys How I can change the encoding on Git bash command screen ?

我正在使用Windows 7,当我尝试安装任何Ruby gem时,我通常会遇到此问题

I'm using windows 7 and when I'm trying to install any Ruby gem I usually got this issue

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

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

so when I try to use the command chcp 1252 it's gives me the error

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

所以我如何在git bash命令屏幕上更改编码?

So how I can change the encoding on the git bash command screen ??

推荐答案

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

This is probably way too late, but anyway you need to use :

chcp.com 1252

因为git bash无法单独将chcp扩展为完整的可执行文件,所以您需要键入完整的命令.

because git bash can't extend chcp to a full executable on its own, so you need to type the full command.

这篇关于git bash chcp Windows7编码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 13:52