I use a small HTML form for a request to a tomcat server (servlet). If I use the "GET" request, my implemented "SetCharacterEncodingFilter" works very well and the result shows me all of the german "umlauts". But if I use a POST request (and unfortunately I need to do this), all of the "umlauts" look very funny ;-)
The HTML part looks like this:
<form id="form1" name="form1" method="POST"
accept-charset="uft-8"
action="http://localhost:8080/foo">
<p>
<label for="textfield"></label>
<textarea name="text" id="text"
cols="45" rows="5"></textarea>
</p>
</form>
The Servlet part:
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException, JSONException, Exception {
response.setContentType("text/html;charset=UTF-8");
String querytext = request.getParameter("text");
...
...
Could anyone help?
Thanks in advance!