title: UTF-16BE and UTF-16 issue in java
body: <p>I have a file, when displayed with <em>geanny</em> * shows <em>UTF-16BE</em>. If I try to convert this file in <em>Java</em> to a different encoding (let's say <em>ISO-8859-1</em>), assuming it is <em>UTF-16BE</em>, a question mark (?) appears every time at the beginning of new created file. If instead I assume it is in <em>UTF-16</em> (something that's not true), the converted file gets converted ok, without any question mark at the beginning.
  Can anybody clarify why this behavior?</p>
  
  <p>Bellow is a snippet from my used code:</p>
  
  <pre><code>
      StringBuilder sb = new StringBuilder();
      BufferedReader buff = new BufferedReader(new InputStreamReader(inputStream, utf16beCharset));
      String line = null;
  
      while ( (line = buff.readLine()) != null) {
  
          sb.append(line);
          sb.append('\n');
      }
  
      String output = new String(sb.toString().getBytes(neededCharset), neededCharset);
      System.out.println(output);
  </code></pre>
  
  <p>* <em>geanny</em> is a text editor</p>