When reading the contents of a file to print the same in the eclipse console, I have a pronounced word and it's coming out like this in the console:
é um teste
The correct display is:
é um teste
I checked the eclipse Run options and my encoding is ISO-8859-1
How can I resolve?
For testing, I'm using the following code to do the action:
final Scanner input = new Scanner(new File("/home/douglas/teste.txt"));
while (input.hasNextLine())
{
System.out.println(input.nextLine());
}