• Post Reply Bookmark Topic Watch Topic
  • New Topic

charcter encoding in jsp

 
Essam AbdelAziz
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i try to insert date in databas
i sned teh data from my jsp to my servlet to insert in teh database
then redirect agian to my jsp
but when i back to my jsp again the arbic data appears like garbage or questions mark

i set encodink like this
in my jsp
<%
response.setContentType("text/html; charset=UTF-8");
%>

in servlet
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");

if there any clue
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!