title: UTF-8 : characters not recognized
body: <p>I am trying to parse a text file using HashMap. The problem is that I have special characters like Ș and Ț and my application didn't recognize them.
  This is my code:</p>
  
  <pre><code>    Map&lt;String, String&gt; m = new LinkedHashMap&lt;String, String&gt;();
      FileInputStream fin = null;
      InputStreamReader isr = null;
      BufferedReader br = null;
      try {
        fin = new FileInputStream("inferredflexforms.txt");
        isr = new InputStreamReader(fin, "UTF-8");
        br = new BufferedReader(isr);
        String line = br.readLine();
        while (line != null) {
  
          String[] toks = line.split("\\s+");
          m.put(toks[0], toks[1]);
          line = br.readLine();
        }
      } finally {
        if (br != null)  { br.close();  }
        if (isr != null) { isr.close(); }
        if (fin != null) { fin.close(); }
      }
  
  System.out.println(m);
  </code></pre>
  
  <p>My text file contains: dănțaseși    dansa</p>
  
  <p>And my output is: dăn?ase?i=dansa</p>
  
  <p>The "ș" and "ț" was replaced by "?". 
  What should I do?
  Thank you.</p>