Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

How to get UTF-8 decoded parameters from request - Chinese Characters

PATTUS Jean-Philippe

2007-01-23

Replies:

Hello the list, i'm back with my chinese langage.
In a jsp file i have a <form> <input type="text" id="id"> <button onclick=submit()></button></form>

When i fill my form with chinese characters and i submit() the form, on the server side when i read the parameter from my request i get "C:/???????????" something like this.
On the jsp page when i display the query string (document.location.search) i get the correct chinese characters.
How could i set the encoding parameter to Tomcat ? I have tried to add URIEncoding="UTF-8"
in my server.xml but it doesn't work.

If you have some ideas ?
 



> Jean-Philippe Pattus
> Sogitec Industries
> Division Documentation et Syst?mes
> E-mail : jppattus@(protected)
> T?l. : 02.99.05.34.25  Fax : 02.99.05.34.05
> **** Out of office on wednesday's and friday's afternoons ****
>
>
>

******************************************************************
Ce message et ses pi?ces jointes sont confidentiels et ?tablis a l'intention exclusive de ses destinataires.
Tout message ?lectronique est susceptible d'alt?ration. SOGITEC d?cline toute responsabilit? au titre de ce message s'il a ?t? alt?r?, d?form? ou falsifi?.
Si vous n'?tes pas destinataire de ce message, merci de le d?truire imm?diatement.
******************************************************************

©2008 junlu.com - Jax Systems, LLC, U.S.A.