Greek string through an html form

Hello! I have an html page, which contains the following form:

<form action=“adduser.jsp” method=“post”>
Username <input type=“text” name=“user” />
Password <input type=“password” name=“psw” />
<input type=“submit” value=“Register” />

Then in the adduser.jsp page I get the name with the command:
String name = request.getParameter( “user” );

The problem is when I give greek names. For example, if I insert the name “νίκος” the result in the jsp page is “???”.
I tried adding " accept-charset=“iso-8859-7” ", which is recommended for greek, but nothing happened. Any ideas?

Set the page header as “UTF-8”. Will be works fine

I had the same problem with my JSP page that uses charset UTF-8. I discovered that by deleting the “method” property at the form tag then greek letters submitted correctly.

So replace <form action=“adduser.jsp” method=“post”> with <form action=“adduser.jsp”>

I found that you do not have to remove the “method” property at form tag but insert a code line at the top of all your html tags and code to set the character encoding. The code line is here below.

<% request.setCharacterEncoding(“UTF-8”); %>