Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git bash chcp windows7 encoding issue

Tags:

git

bash

ruby

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

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

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

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

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

like image 264
Astm Avatar asked May 12 '26 08:05

Astm


1 Answers

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

chcp.com 1252

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

like image 72
Khalid Dabjan Avatar answered May 13 '26 23:05

Khalid Dabjan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!