windows git 输入中文 乱码
怪我咯
怪我咯 2017-04-25 09:04:22
0
2
754

找了一些网上的方案 ls 可以显示中文
但是输入在 git bash 输入中文 还是乱码

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
PHPzhong

You can use the command prompt that comes with Windows instead of the one provided by git. Just add the directory where the git execution file is located to the PATH environment variable.


Git bash will automatically change the code page in the settings to 437 (United States), which is a headache. But you can still change the code page in git bash, using the chcp program. Reference: http://stackoverflow.com/questions/1259084/what-encoding-code-page-is-cmd-exe-using

$ /c/windows/system32/chcp.com 936
活动代码页: 936

936 is the Chinese code page.

阿神

Git for windows Chinese garbled solution

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template