Hi Chris, Thanks for the quick repsonse. I think you are talking about setCharactorEncoding method.? Please reply Jiju
-----Original Message----- From: Kirk, Christopher [mailto:christopher.kirk@;convergys.com] Sent: Thursday, October 24, 2002 2:28 PM To: '[EMAIL PROTECTED]' Subject: RE: Tomcat - Japanese Char Support Take a look at the http request object, it has a setCharacterSet method on it. Call this before anything is read from the request and it will change the character encoding away from Latin-1 (or UTF-8.. some browsers have a habbit of switching between these two charsets with out telling the server). Unfortunately different browsers behave in different ways, they should tell the server what charset was used but often don't.. so to support multiple browsers you might want to add a configurable override to the server so that based on the type of browser (version, locale etc) you'll be able to override the charset. If maximum support is not your goal, then just hard coding setCharacterSet should be enough. - Chris. -----Original Message----- From: JOSHY MON M C [mailto:JOSHYMON@;NESTEC.NET] Sent: 24 October 2002 09:37 To: [EMAIL PROTECTED] Subject: Tomcat - Japanese Char Support Dear All, I have created an HTML form. with some input text fields. I am using POST method for submitting the request to a servlet. My servlet is running in Tomcat 4.1. My html page contains japanese charectors and thus I use Shift_JIS as the encoding for my html page. Servlet application reads the data using getParameter() and processing it. In the normal senario, it works well. But when I enter JAPANESE characters in these text fields and request to Servlet for data processing, Servlet's getParamer() is returning junk charecters(??). I think this problem is because Tomcat by default encodes all the paramets in ISO8859_1 encoding. But as my html encoding is Shift_JIS browser will encode the form parameters using Shift_JIS and Tomcat cannot recognize this. Is my assumption correct? Do you know any technique to resolve this issue.? TIA Jiju George =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com