• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with encoding

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I am developing a web application using a language other than english.
my all JSPs and servlets has the following encoding:
windows-1256
when submitting a form, the form will be taken to a JSP file that displays what I have entered.
but the problem is, ??? characters are displayed instead of the right characters.
so what is the problem ? should I use other encoding, if so please tell me what it is.
should I add something to Tomcat conf files ?
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are getting "???" characters because of inproper encoding only.
Use UTF-8 encoding in JSP's as well as in servlets.
Ensure that your JSP pages are UTF-8 encoded by doint right click on page
-> Encoding --> and the the selected encoding.
Also, in servlets you might need to convert the request into UTF-8 again though the request will be coming from UTF-8 encoded page.
[ March 30, 2004: Message edited by: Varun Khanna ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic