Solve the Problem of garbled Chinese input in the shell environment (GIT-bash) of msysgit

Source: Internet
Author: User

InWindowsThe defaultMsysgitOfShellEnvironment (that isGit
Bash).ShellEnter Chinese characters in the interface and do some processing.

1 Methods of online circulation

Modify configuration file\ Git \ etc \ inputrc, Add or modify the configuration as follows. CloseGit bashRestart the instance.MsysgitOfShellEnter Chinese characters in the environment.

# Disable/enable 8bit Input

Set meta-flag on

Set input-meta on

Set output-meta on

Set convert-meta off

I tried this method and restarted it.Git bashThe entered Chinese characters are still garbled. Puzzled ......

Note: My msysgit version: Git-1.7.11-preview20120710.exe

2 Alternative methods

DownloadMSYS-CN latest version, Official Website: http://code.google.com/p/msys-cn/, my download is
MSYS-CNThis version supports Chinese display. ReplaceBinDirectory decompression OverwriteGitInBinDirectory (remember to back up the original
BinDirectory ). Then runGit-BashYou can enter Chinese characters normally.

In the US, only half of Chinese characters can be deleted at a time when Chinese characters are deleted, and problems still occur when accessing the Chinese directories.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.