Error-page directive in web.xml doesn't render UTF8 correctly
I have a web.xml application with the following entry:
<error-page>
<error-code>404</error-code>
<location>/system_files/error/p_notfound.jsp</location>
</error-page>
However, when this page is displayed, Japanese characters are garbled.
The same page (p_notfound.jsp) renders correctly if rendered directly or even through a servlet filter.
I tried adding a filter:
request.setCharacterEncoding("UTF8");
But that doesn't help. Any ideas?
+1
source to share
3 answers