Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I determine the default character encoding in a RedHat system using the command line? I just want to know what encoding a Java app would use per default if none is specified

share|improve this question

The locale command holds the key to these secrets.
(There are probably other RedHat-specific ways to do this, but locale will work on pretty much any *NIX system.)

share|improve this answer

I had problem with ISO-8859-1 files in a server UTF-8 and I was force to change

You can see de default language using the command:

echo $LANG

Edit the file: /etc/sysconfig/i18n and modify the property. See the example bellow:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.