title: How to identify the encoding charset of a file in Java?
body: <p>I've already tried the juniversalchardet library and it works fine for UTF-8, UTF-16LE, UTF-16BE but it's not detecting the format for US_ASCII and ISO-8859-1. I've also used the jchardet and it doesn't achieve my goal.</p>
  
  <p>Plus the InputStreamReader is not also working in my situation. So, how can I detect the character-sets US_ASCII and ISO-8859-1, or for all the of the above character sets?</p>
  
  <p>Incidentally, I created these format files using editpad Lite 7.</p>