Zeng (Sir/Madam), 1. I use Traditional Chinese Windows2000, and response.getEncoding() also returned "MS950". 2. I also use the same way to set meta tag but no help. (In servlet, it only have to do setContentType()). 3. If I use compile option "-iso8859-1", the servlet will getEncoding as "8859-1". 4. I used 1.2 and 1.3, the situation is the same. 5. JWS decide page encoding, default is 8859. I can not modify it to other encoding, unsupported encoding error will occured. 6. Since my project is urgent, I removed all the setContentType() in my servlets then compile all servlet with -ISO8859 option. All Chinese character will be normal in browser. I am not sure why this happen, it might be Win2000 has some NLS conversion function to impact JVM, that will has some character conversion in OS inside. While I was working Windows Chinese add-on (Like Richwin, TwinBridge), I have to let OS native function to convert character then try to convert back to BIG5/GB. After MS add Unicode support in OS, I have to convert GB/BIG5 using GB->Unicode->Unicode GB set->Unicode GB/BIG5 table->Unicode BIG5 set->BIG5. It hard for the user which does not use non-MS developing tools. Regards, Robin Lin ----- Original Message ----- From: "Zeng, Feng_Hua (CAP,CEF)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 21, 2001 12:00 PM Subject: Re: Unsupported character encoding under JWS2.0 ? > Robin (Mr. Lin), > Thank you very much. > 1, With your hints, I substituted "request.getParameter(paraName)" > with > "new String(request.getParameter(paraName).getBytes("8859_1"))", > which also succeeded. (Of course, obviously it is a little more awful > if every place should be replaced like that.) > 2, By the way, it seems to have nothing with the following sentence: > out.println("<META HTTP-EQUIV=\"Content-Type\" > CONTENT=\"text/html; charset=Shift_JIS\">"); > 3, And, just for confirmation, I found that by > "response.getCharacterEncoding()" > the following result was obtained: > response.getCharacterEncoding()=ISO-8859-1 > Maybe that is the very reason ? > 4, Might it be different along with the Java compiler ? > 5, Or is it decided by the configuration of JWS ? > Not understood thoroughly enough yet. > > -----Original Message----- > From: Weitsong Lin [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 19, 2001 11:47 PM > To: [EMAIL PROTECTED] > Subject: Re: Unsupported character encoding under JWS2.0 ? > > Hi, > I also met this problem last month with Chinese BIG5 charset. The problem > was occured with HTML encoding and JDBC data source output to HTML. There > was be only one item can be displayed, another item will be displayed as ??. > I removed all character encoding in servlet then built my class with follow: > javac -encoding ISO8859-1 myclass.java > All Chinese display is correct. > For your reference... > > Robin Lin > > ---------------------------------------- > Romantic Emotionalists Must Endure Ordeals. > Email1(200103): [EMAIL PROTECTED] > Email2(200011): [EMAIL PROTECTED] > Email3(199908): [EMAIL PROTECTED] > Email4(199906): [EMAIL PROTECTED] > Office: Tokyo, Japan http://www.gecapital.com > Home: Dalian, Liaoning, China (Hometown: Hunan) > ---------------------------------------- > > ___________________________________________________________________________ > 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

Reply via email to