1
When reading the contents of a file to print the same on the eclipse console, I have a sharp word and it is coming out like this on the console:
é um teste
The correct thing to show is:
é um teste
I checked the eclipse Run options and mine encoding is ISO-8859-1
How can I solve?
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());
}
Got how you put in UTF-8?
– Victor Stafusa
It worked @Victorstafusa
– Roknauta