Problems to give umlauts from jsp to servlet and also back

Hi,I have a jsp with several inputfields. If I submit the contents of the form to a servlet, I get the umlauts as cryptic signs. What do I have to add in my jsp and in the servlet to submit the special letters in the right way?
[241 byte] By [LosUmbrelloa] at [2007-10-2 13:03:31]
# 1
At the top of the jsp pages:<%@page contentType="text/html;charset=UTF-8"%><%@page pageEncoding="UTF-8"%>I think that will do it.
Ananasia at 2007-7-13 10:25:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
If all pages are UTF-8 then you can skip the following step:Set the servlet request encoding before reading any data:request.setCharacterEncoding("UTF-8");
Ananasia at 2007-7-13 10:25:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Hey!

Thank You for Your answer!

I have made the changes and I get the content correct back to my jsp! I also have set the content type in the servlet, before I磎 reading the parameters from the jsp. But when I make a system out in the servlet after reading the parameters from the jsp, I have cryptic letters again in the console.

Do you think, it磗 only a problem of the windows command box, or how can I check, if the values in the servlet are correct? I need to send the content from the servlet to SAP and GIS, so I hope it get submited right!

LosUmbrelloa at 2007-7-13 10:25:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
If you are using a command prompt to display the log, then that is the problem. The command prompt only displays ASCII characters, the Unicode will look lilke a weird character in that setting. Check the log with a Unicode enabled editor (wordpad will do in a pinch).
Ananasia at 2007-7-13 10:25:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Thank You very much! Then it should work now...Cheers
LosUmbrelloa at 2007-7-13 10:25:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...