How to detect Unix terminal character encoding?

Posted by Epaga on Stack Overflow See other posts from Stack Overflow or by Epaga
Published on 2010-04-22T09:04:51Z Indexed on 2010/04/22 9:13 UTC
Read the original article Hit count: 249

Filed under:
|
|
|
|

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.

But what about in Linux or Mac?

© Stack Overflow or respective owner

Related posts about java

Related posts about mac