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 happens even when though I made sure that the original form is sent to the browser with the appropriate content type ("text/html ; charset=...")
Thus, my question is: is there a way to tell the browser which encoding to use when it sends me the form data ?
In general, is there a portable way to work with internationalized form parameters (it shoud be protable between different types of browsers, as well as different vendors of
j2ee containers).
Thank you very much.