• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

charcter encoding in jsp

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic