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:
- Generate war with command
grails war
- Upload war to server (tomcat)
- Open the app in the browser
- 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