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 to set the characterset in servlet

Status
Not open for further replies.

mohab

Programmer
Jun 16, 2002
19
EG
dear all
i had deployed a project on JBOSS Application Server, the project works by sending some parameters in the url
ex:http:\\machinename:portno\application name\mainservlet?parameter1=test&parameter2=test
it worked ok but when send paramteres in arabic language or values of parameter are arabic, it stores it in database, but when retrieving it i found it stored like that"???? ???"
N.B: the problem isnot in the characterset of DB, which is SQL server by the way
please help
happy.gif


Java Developer(J2EE)
 
sorry i forgot to tell u that in the mainservlet
i made it like that
response.setContentType("text/html;charset=windows-1256");
request.setCharacterEncoding("windows-1256");

Java Developer(J2EE)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top