I'm using Scanner to read some keyboard data, but accents and special characters are not identified.
For example: John and Maurice appear with a square in the accented letter, but if I type these words in the output on screen does not have problems. They appear right.
I tried with static Locale PORTUGUESE;
but it did not work.
How can I make it work?
Thank you
EDIT
My code is like this:
package Trabalho_final;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Funcionario
{
private String nome, email, telefone;
private float salario;
Scanner ler = new Scanner(System.in,"UTF-8");
//............ restante do código