encoding « Parameter « JSP-Servlet Q&A

1. UTF GET parameter codification problem in JSP (JBoss 2.0.1)    stackoverflow.com

I´m trying to take a string from a GET or POST parameter in JSP with some accents in UTF-8:

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

2. Problem in decoding parameters in get method, JSP    stackoverflow.com

Here how jsp page is called.

This is the line in eventMap.jsp which I get venue parameter:
var venue="<%= URLDecoder.decode(request.getParameter("venue"),"UTF-8") %>";
Unfortunately this is the result in final javascript:
var venue="Ä°ndigo"; 
How can I use ...

3. Encoding (internationalization) of parameters in HttpServletRequest    coderanch.com

Hi, I have a web application, where the user fills in a < form > and sends it to a servlet. The servlet reads the form using HttpServletRequest.getParameter(..). The problem is: user may fill the form with strings in a foreign language (Chinese/Japanese, in my case). Unfortunately, when I call request.getParameter() , I get gargage instead of my Chinese data. That ...