Idea Terminal modified to Git bash does not support Chinese

Source: Internet
Author: User
1.idea terminal modified to Git bash

Because the idea comes with the terminal tool is Windows Command Window cmd, in the development process need to use some common command operations to constantly in the idea and git bash between the switch, greatly reducing our development efficiency, So we need to find a way to both worlds-to modify the idea Terminal Command window to the Git Bash Command window.

The shell path in terminal is modified to Bash.exe under the GIT installation directory bin

2. Resolving Chinese to Unicode issues

The Chinese characters in the console after the change to Git bash are automatically converted to Unicode encoding

To solve the above problem, you need to modify the Git installation path (my installation path D:\Program files (x86) \tools\git\git\etc) BASH.BASHRC file, add the following at the end of the file:

Export lang= "ZH_CN. UTF-8 "Export lc_all=" ZH_CN. UTF-8 "

After the modification is complete, restart idea to solve the above problem.

Idea Terminal modified to Git bash does not support Chinese

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.