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
- Unsupported character encoding under JWS2.0 ? Zeng, Feng_Hua (CAP,CEF)
- Re: Unsupported character encoding under JWS... Weitsong Lin
- Re: Unsupported character encoding under JWS... Arockia Joseph
- Re: Unsupported character encoding under JWS... Zeng, Feng_Hua (CAP,CEF)
- Re: Unsupported character encoding under... Weitsong Lin
