idea to solve the Chinese garbled terminal

In operation command git idea on the windows in the terminal window, always problems Chinese garbled

 

This began to think that the issue of hash git, if it is GIt Chinese garbled solution: https://www.cnblogs.com/sxdcgaq8080/p/9071099.html

Idea but found his Treminal command window Chinese garbled.

 

solution:

1. First find the local IDEA installation path, find the file and idea64.exe.vmoptions idea.exe.vmoptions file, add it at the last line

-Dfile.encoding=UTF-8

Storage

2. Modify bash.bashrc file in the git installation path, the file add

 

Add the last line in the file

export LANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"

 

 

Finally, still can not solve the problem, and finally discovered that the original idea is the default file system's own cmd.exe command-line operation,

 

Then the system comes with cmd.exe tried it, is really the case

 

 

 

Then there are two solutions

1. The first method: the simplest is to replace git bash cmd idea to use git to provide their own

 

 

And then type exit to exit the terminal window.

reopen

 

 

2. The second method: the problem is to change the windows system comes with Chinese garbled the [cmd] is not recommended

 

Guess you like

Origin www.cnblogs.com/whm-blog/p/11606054.html