We have a strange problem, of web app on displaying the UTF-8 characters correctly, here are the facts :
However, whenever our developer redeploy our webapp module, or when we restart the tomcat, all the UTF-8 Character is being display as ????? at our browser..
We have to do a proper restart of Tomcat (wait Tomcat stop completely, and restart tomcat again), although is annoying, it does solve the problem.
Does anyone come across similar problem before, thanks for your advise.
If you're sure the content is UTF-8, this could work. Set this line in the catalina.sh file (for example, just after the huge initial comment, long before exporting them):
export CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF-8"
Also, we don't know if you're using data from a database. Check if you have put it in there properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With