Grails sometimes render wrong character encoding

121 Views Asked by At

I have a Grails application deployed in a tomcat. For some reason, sometimes render wrong characters, accented characters becomes a strange ?.

Did someone face this problem and solved it?

I tried to find a solution but problems exposed there, are about a constant encoding problem, but in my case is random.

If I refresh the page, around 30% of times return wrong encoding, other 70% work correctly. What the ... it is going wrong?

Any help would be appreciated.


Steps to reproduce:

  1. Generate war with command grails war
  2. Upload war to server (tomcat)
  3. Open the app in the browser
  4. Hit F5 to refresh the page and the result is sometimes correct and sometimes wrong (random behaviour).

More info: I realized that this behaviour happens with gsp templates not gsp views

0

There are 0 best solutions below