kongtao wrote:

> Hello ,everyone. I'm confused by a problem.I wanna convert the Big5
> character into GB2312 character.But I can't see the expected
> characters throught the IE explorer.The original characters is  Big5.I
> programme to convert it into GB2312,But unexpected occurs.Following is
> the source code:****************java code******************
> while((str_big=readfile.readLine())!=null){
>         b_str_big=str_big.getBytes("iso-8859-1");
>         str_gb=new String(b_str_big,"gb2312");
>         writefile.write(str_gb);
>         writefile.newLine();
>       }
>       readfile.close();
>       writefile.close();****************java code******************Any
> helps are appreciated.THX in advanced.

Make shure  that your JVM can support this encodings. And try change
encoding names to "ISO8859_1
", "EUC_CN".

___________________________________________________________________________
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