title: Special characters Scanner Java
body: <p>How can you read special characters from a file with the java Scanner class? I tried mentioning an enconding but it doesn't work.</p>
  
  <pre><code>Scanner scanner = new Scanner(new File("words.txt"), "utf-8");
  Scanner lineScanner = null;
  while (scanner.hasNextLine()) {
      lineScanner = new Scanner(scanner.nextLine());
      lineScanner.useDelimiter(";");
      String article = lineScanner.next();
      // and so on...
  }
  // Close the scanners 
  </code></pre>
  
  <p>What I am trying to read is a line like this:</p>
  
  <pre><code>"la;leçon;de les;lesòn"
  </code></pre>