title: How to detect Unix terminal character encoding?
body: <p>Is there a way to detect the character encoding set in the terminal which is calling my Java program? In Windows I can call the "chcp" tool and parse the output.</p>
  
  <p>But what about in Linux or Mac?</p>