title: How to get file encoding type?
body: <blockquote>
    <p><a href="https://stackoverflow.com/questions/499010/java-how-to-determine-the-correct-charset-encoding-of-a-stream">Java : How to determine the correct charset encoding of a stream</a>  </p>
  </blockquote>
  
  
  
  <p>i want to get the file encoding type runtime for pertiqular file.</p>
  
  <pre><code>System.getProperties("file.encoding");
  </code></pre>
  
  <p>the above code display the same encoding type for all input file.</p>