I have a java web project running Servlet 2.4 on Apache Tomcat.
In my servlet I have set request.setCharacterEncoding("utf-8") and using the <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> in HTML head tag.
All files (Java, JS etc.) in the project have text file encoding set to utf-8. I have also added a Filter mapped to all Servlets in web.xml which sets character encoding to utf-8.
When making ajax requests (both get and post) to the web server where I use jQuery, and the serialize method on a html form, the Servlet is unable to retrieve special utf-8 characters.
Maybe it's because it expects UTF-8 and gets URLencoded string? Has anyone any tips regarding this?