It works for me on 2.6.2GA and 2.7.1 (Redhat Linux).
You can try to set jvm encoding to UTF-8 (-Dfile.encoding=UTF-8).
here are some things to check:
- Check if the RequestDumperValve is enabled in deploy/jboss-web.deployer/server.xml.
- Check for any other valves or filters which try to read out the request parameters, either by calling request.getParameterValues() or request.getParameter(name). If there is such a valve or filter, remove it.
- Have a look at https://jira.jboss.org/jira/browse/JBWEB-110 and inspect the conf/jboss-log4.xml config file if DEBUG level logging is enabled for "org.apache.jasper.servlet.JspServlet".
check those 3 things but it does not solve my problem.
I tried some things, read a lot source code.
I removed all UTF-8 settings like URIencoding=UTF-8, JAVA_OPTS -dFile-Encoding=UTF-8 from the configuration files. It makes no difference.
I've set a filter with request.setCharacterEncoding("UTF-8"). it's the first filter which is executed, but my umlauts are already garbled there. so this garbling must happen before the filters are executed.
I wrote a small Servlet with a small form and an input field. When i set request.setCharacterEncoding("UTF-8") everything works fine. if it's not set my umlauts are grabled too.
So setting request.setCharacterEncoding("UTF-8") ist required, but where do i have to set it.
This behaviour is reproducabel on a standalone tomcat server and a JBoss 5 Server.
i found a solution for my problem!
after commenting out the RequestDumperValve, my umlauts are OK.