Redhat – Determine the default character encoding in a RedHat system

encodingredhat

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

Best Answer

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.)