DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15880>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15880

Why not support Chinese?

           Summary: Why not support Chinese?
           Product: Tomcat 4
           Version: 4.0.6 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Tomcat4.0.6+jdk1.3.02:
When I insert values into database,
if the values are Chinese.Tomcat will insert upside-down code.
such as "£¿£¿£¿£¿¡¤£¿£¿",
Chinese cannot be inserted normally in JSP pages.
so I have to convert the code before i insert the String into database:
public String getStr(String str){
                try{
                        if(str == null || str.length() == 0)
                                return str;
                        byte[] b = str.getBytes("ISO8859-1");
                        return new String(b);
                }catch(Exception e){
                        System.err.println(e.toString());
                }
                return null;
        }
I insert Chinese by other method normally.
Chinese can be displayed normally in JSP pages by TOMCAT.
But Resin web server has never the problem!!!

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to