Hi,
My problem involves Internationalization. I have a servlet that gets request
data from applets. The applets could be run from any machine (win32, unix,
linux....whatever). I always encrypt my data before i send it from the applet,
resulting in some characters being mapped between \u0080 to \u009F. These characters
are valid in ISO8859_n
Encoding scheme, but become '?' when used from winNT machine (since the encoding
default there is Cp1252). So i'm always setting the Encoding of any data (POSTed from
the applet, thru a OutputStreamWriter) to 8859_1. I have two doubts wrt the above:
1. Can there be a case when the stmt:
OutputStreamWriter out = new OutputStreamWriter(someOutputStream, "8859_1");
gives me UnsupportedEncodingException on any machine ? (in other words, is 8859_1
supported on ALL machines ?)
2. I get the data into the Servlet using getParameter("name"). This returns me a
string with the system's (web server's) default encoding scheme. In the case my web
server is on NT, i again get a problem of chars between \u0080 and \u009F being
translated to '?'. I even tried System.setProperty("file.encoding", "8859_1") but to
no avail. The problem still persists. Is there some way i can see light ?
Thanx a lot in advance...
Sanjay
___________________________________________________________________________
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