title: Why am i getting ?? when i try to read ä character from a text file in java?
body: <p>I am trying to read text from a text file. There are some special characters like å,ä and ö. When i make a string and print out that string then i get ?? from these special characters. I am using the following code:</p>
  
  <pre><code>File fileDir = new File("files/myfile.txt");
  
  BufferedReader br = new BufferedReader(new InputStreamReader(
                        new FileInputStream(fileDir), "UTF8"));
  
  String strLine;
  while ((strLine = br.readLine()) != null)   {
      System.out.println("strLine: "+strLine);
  }
  </code></pre>
  
  <p>Can anybody tell me whats the problem. I want strLine to show and save å, ä and ö as they are in text file. Thanks in advance.</p>