Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I send japanese string between form in jsp and struts?

Status
Not open for further replies.

prosper

Programmer
Sep 4, 2001
631
HK
I have the following statement in my jsp
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
/* */
try{
request.setCharacterEncoding("Shift_JIS");
}
catch (UnsupportedEncodingException uee){
}
before I use request.getParameter("firstname");
I use Japanese win2000
Thanks for any help!
 
I 've found it

msg = new String( msg.getBytes("latin1"), "JISAutoDetect" );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top