export LC_ALL=C
For me, it transformed MC from this: to this: Although there are still some strange characters for scrolls, MC looks considerably better. The above command can be written in your local .bash_profile file, that you don't have to set it manually every time you login.
Command local can be used to check the state your local character encoding variables. For example
[w@localhost rpms]$ locale
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
much better, thanks!
ReplyDeleteTo completely get rid of the odd characters you should set your LANG environment variable to en_US.ISO-8859-1. See the following article for an example: http://www.adercon.com/ac/node/69
ReplyDeleteI had a similar issue using mc in Putty over SSH. Solution was to change the character encoding of Putty (Window->Translations->Remote character set) to UTF-8.
ReplyDeleteThanks!
DeleteThank you!
ReplyDeleteSolved it for me too.
ReplyDelete+1
ReplyDelete