I can't make UTF-8 work in Tomcat. I've already done the following configurations:
- Set URIEncoding="UTF-8" on my server.xml
- export CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF-8" in catalina.bat
- Configured Spring CharacterEncodingFilter
- Set UTF-8 in all html files
- Maven sourceEncoding build UTF-8
When I call my webapp url in the browser or postman I can see Content-Type →text/html;charset=UTF-8. But the page is rendered with wrong encoding. And when I open the deployed webapp in Tomcat folder the html files are with the correct encoding too. I really don't know what to do.
I am using Angular, Spring, Jersey, Spring Security and Tomcat.
Thanks.