Solve windows mingw display garbled http://winsen-da.spaces.live.com/blog/cns! 64c90cfb2d00004f1! 485. Entry? WA = wsignin1.0 & sa= 387596265
The default shell displays ugly things, and a bunch of garbled characters are displayed using the LS command. You can modify the etc/profile file in the msys directory. The LS command correctly displays Chinese characters.
Export PS1 = '[\ U @ msys \ W] $'
Export PS2 = '>'
Export PS4 = '+'
Export lang = en
Alias L = '/bin/ls -- show-control-chars -- color = tty'
Alias LA = '/bin/LS-af -- show-control-chars -- color = tty'
Alias LL = '/bin/LS-alf -- show-control-chars -- color = tty'
Alias ls = '/bin/ls -- show-control-chars-f -- color = tty' this method has been verified to be effective and can work properly. The next article introduces another method, it seems that you cannot implement Chinese input.