title: Why FileInputStream readline returns null when I set encoding to UTF-16?
body: <p>It works fine with <code>UTF-8</code>, and it also works fine with <code>UTF-16</code> if I use different file.</p>
  
  <pre><code>BufferedReader br = new BufferedReader(new InputStreamReader(new 
  FileInputStream(filePath), "UTF-16"));
  </code></pre>
  
  <p>If I replace <code>UTF-16</code> with <code>UTF-8</code> in above code, everything works as expected, why is that?</p>
  
  <p>Suggested answer is different because I just need to read the file. Answer was simple, I can't read UTF-16 if the file is UTF-8.</p>