title: All accented charaters are turned into question marks
body: <p>I have a file that has accented charaters: <code>ÇÍââÇÍ</code></p>
  
  <p>I need to change them into <em>ISO-8859-15</em> encoding</p>
  
  <p>The code:</p>
  
  <pre><code>    String fileName = "C:/Users/User/AppData/Local/Temp/temp6893820181068878551.txt";
  
      File file = new File(fileName);
      FileInputStream fin = new FileInputStream(file);
  
      FileChannel ch = fin.getChannel();
      int size = (int) ch.size();
      MappedByteBuffer buf = ch.map(FileChannel.MapMode.READ_ONLY, 0, size);
  
       byte[] utf8bytes = new byte[size];
      buf.get(utf8bytes);
  
      System.out.println(new String(utf8bytes));  
  
      System.out.println();
      System.out.println();
  
          Charset utf8charset = Charset.forName("UTF-8");
          Charset iso88591charset = Charset.forName("ISO-8859-15");
  
          String string = new String ( utf8bytes, utf8charset );
          System.out.println(string);
          System.out.println();
          System.out.println();
  
          byte[] iso88591bytes = string.getBytes(iso88591charset);
  
          for ( byte b : iso88591bytes )
              System.out.printf("%02x ", b);
  
          System.out.println();
          System.out.println();
  
          String string2 = new String ( iso88591bytes, iso88591charset );
  
          System.out.println(string2);
  </code></pre>
  
  <p>But I get as output:</p>
  
  <pre><code>ÇÍââÇÍ
  
  
  ??????
  
  
  3f 3f 3f 3f 3f 3f 
  
  ??????
  </code></pre>