Solution to garbled characters in RedHat Linux command line mode
Note: The following #(root) is the command prompt
Method 1:
#locale (the locale command is used to view the language details, which is Chinese language)
#export LC_ALL=POSIX (the export command exports and modifies the LC_ALL language option)
#locale (check again, info has changed)
This method will be invalid after the user logs out or restarts. To save the settings, see Method 2.
Method 2:
#vi /etc/sysconfig/i18n (use vi editor to modify the configuration file i18n)
Write LC_ALL=POSIX to the i18n configuration file. Logging off or restarting the service takes effect permanently.
Source: http://blog.csdn.net/yangxueyong/article/details/6533561