how do I decode a request parameter?

like this on:
 /.../EditUser.do?id=g%C3%BCltz

the value should be: "gültz"

in my Action-Class I do the following:
-----------------------------
public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws
Exception {

                String username = request.getParameter("id");
            
username = new String(username.getBytes(request.getCharacterEncoding()),
request.getCharacterEncoding());
...
---------------------------

But after that username equals "gültz" instead "gültz" ?


-- 
View this message in context: 
http://www.nabble.com/Decode-Request-Parameters-tf3718189.html#a10402348
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to