title: Java Scanner cannot read words with accent mark
body: <p>I have  problem with my CODE. IF I add words with accent mark to file, Scanner won´t read it.Thank you for help.</p>
  
  <p>For example if file "names.txt" contains:
  John
  Lil
  None</p>
  
  <p>number of words in file is 3</p>
  
  <p>but if contains:
  Jóhn
  Lil
  None</p>
  
  <p>number of words in file is 0</p>
  
  <p>CODE IS:</p>
  
  <pre><code>    File file=new File("names.txt");
      Scanner skener=new Scanner(file);
  
  
      int count=0;
  
      while(skener.hasNext()){
  
          aArrayListOfNames.add(skener.next());
          count++;
      }
  
      skener.close();
      System.out.println("Count is "+count);
      return count;
  </code></pre>
  
  <p>Thank you all, problem FIXED! :D</p>