It seems like typically:
echo $LANG
results in something like this:
en_US.UTF-8
What encoding is used when the result does not specify an encoding?
echo $LANG
en_US
How do I figure out what the default encoding is?
Using CentOS and Redhat (various versions).
locale charmap
– Stéphane Chazelas Nov 12 '15 at 17:41