After installing red hat linux 9.0, the default language selected is Chinese. As a result, some inexplicable garbled characters often appear on the terminal interface, sometimes under VI, and sometimes system prompts, which are annoying.
The solution is as follows:
Note: The following # is a command prompt.
Method 1:
# Locale (the locale command is used to view the detailed information of the language used, which is a Chinese language)
# Export lc_all = POSIX (the Export command exports and modifies the lc_all language option)
# Locale (check again, the information has changed)
This method will expire after the user logs out or restarts. To save the settings, see method 2.
Method 2:
# Vi/etc/sysconfig/i18n
Write lc_all = POSIX to the last line of the i18n configuration file.
Service cancellation or restart takes effect permanently.
Link: http://www.linuxidc.com/Linux/2007-09/7912.htm
No problem currently.