Hi! You have to set the proper charset for the shell running Tomcat. Put the variable "LC_ALL" with the correct locale in your servers startupscript. Available locales can be found in "/usr/lib/locale".
Brgds Mathias -----Ursprungligt meddelande----- Fran: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]For P Saravanan Skickat: den 3 juni 2002 19:39 Till: [EMAIL PROTECTED] Amne: Japanese Characters in Solaris Hi All I am trying to get japanese input from the HTML form. If i run my servlet in WindowsNT environment, i am able to get the proper japanese character in the server side. But when i move the same class file to Solaris environment, i am getting the junk values(??????). My Servlet code snippet is -------------------------------- String str = req.getParameter("sSE"); System.out.println("Before: " + str); String en = new String(str.getBytes("ISO-8859-1")); System.out.println("After " + en); ------------------------------- In both Windows and Solaris, i am running Tomcat3.2.3 and JDK1.3 My Character set in HTML is SJIS. How i can get the proper string in Solaris. Thanks in Advance With regards Saravanan ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
