hi everybody,
i am still having trouble with character encoding
i almost memorized jason's book's  internationalization chapter.
but none of those solutions work.
see the code below:
    String name = req.getParameter("name");     
    name= new String(name.getBytes("ISO-8859-1"),big5);

though this looks quite straightforward , but doesn't work.
i also tried :

    name=new String(name.getBytes("Big5"));
but  :(
i am having the below compile time error message:
gs.java:387: 未?告的异常 java.io.UnsupportedEncodingException
;必?被捕?或被?明?
出
    name=new String(name.getBytes("Big5"));
                        ^
1 ???

as if my JVM doesn't recognize big5 charset .
by hte way my JRE is jdk1.3.1
i am using tomcat 3.2.2
my os is win2000. My database is SQL 2000
My application is a message board
it works fine with ascii chars, but doesn't work with traditional chinese
chars. Strange thing is that my OS default language is trad. chinese. 
when i manually enter chinese chars into databse it is okey, namely
my program can read chinese chars correctly, but when i enter chinese chars
into the database through a html form( which is dynamically generated by my
servlet) , some garbled chars are stored in the database.
Please give me some suggestions or workarounds.
because i feel that i already tried all possible ways and my brain has
stopped at this point, 
i am looking forward to your smart ideas and suggestions,
thanks in advance
cheers:)







_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/

___________________________________________________________________________
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