Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to use request.setCaharacterEncodeing("UTF-8")

801428May 25 2010 — edited May 25 2010
Hello experts,
From that following code I am getting the values
int discode=Integer.parseInt(request.getParameter("txtDisCode"));
String disname=request.getParameter("txtDisName");
String disnameeng=request.getParameter("txtNameMar");	
I am giving input on jsp page is like that...
in discode textbox = 6
in disname = Beed
in disnameeng = बीड

after the this whenever i am getting the values using request.getParameter();
i will get the value like that..
for discode = 6
for disname = Beed
for disnameenf = for this i will get the value for बीड in difeerent format like "&#11.." etc.

my IE8 supporting for that but whenever i am going to save my values in Database its going with different format which is i declared above.

i want value of disnameneg as it is i.e. बीड

so tell me how to use and where i use the
request.setCharacterEncoding( "UTF-8" );
in my code.


Thanks and Regards,
Andy

Edited by: andy_surya on May 25, 2010 6:00 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2010
Added on May 25 2010
3 comments
159 views