On the following line:
alert ( "Apenas os números 0, 1, 3, 5, 7 e 9 são permitidos." );
it prints like this:
Apenas os n?meros 0, 1, 3, 5, 7 e 9 s?o permitidos.
The problem is that the characters ú and ã are not showing correctly.
In HTML I did something like:
Apenas os números 0, 1, 3, 5, 7 e 9 são permitidos.
and it worked, but I don't know what to do in JavaScript. What should I do to solve this? If it has anything to do with the problem i'm using UTF-8.
Thanks and sorry about the English.