Accented words with problems

Asked

Viewed 50 times

0

In many projects jsf I don’t remember if I’ve ever had a problem like this but as the image below shows, the encoding is not correct. The problem is occurring in the java because I have accented words on the page and everything is fine, in the debug I identified that right after he set the value of the text already messes up the characters. Anyone can help ?

inserir a descrição da imagem aqui

JsfUtils.addWarnMessage("Atenção você deve selecionar o diretório primeiro!");
  • To use accented words the file encoding has to be in UTF-8.

  • Try to put this at the top of your xhtml file: <?xml version='1.0' encoding='UTF-8' ?>

  • I already tried. But the problem is in java.

  • It may be the IDE or Server you are using that has different encoding.

  • To resolve am using a file . properties.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.