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 ?
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 ]