Re: Struts2 character code question

2007-05-08 Thread red phoenix
or email and destroy the original message without making a copy. Thank you. - Original Message - From: "red phoenix" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 08, 2007 8:47 PM Subject: Re: Struts2 character code question &g

Re: Struts2 character code question

2007-05-08 Thread Martin Gainty
OTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 08, 2007 8:47 PM Subject: Re: Struts2 character code question I tried follows in test.do: String name=request.getParameter("Name"); System.out.println(new String(name.getBytes("UTF-8"), "gb2312&q

Re: Struts2 character code question

2007-05-08 Thread red phoenix
I tried follows in test.do: String name=request.getParameter("Name"); System.out.println(new String(name.getBytes("UTF-8"), "gb2312")) it still show [EMAIL PROTECTED],Why? On 5/8/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Red, red phoeni

Re: Struts2 character code question

2007-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Red, red phoenix wrote: > If I input English name in the field Name in JSP,when I submit,the > test.do will receive right English name,but when I input Chinese name > in the field Name in JSP, test.do will receive not right name,it will > show [EMAI