You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/12/05 10:42:12 UTC

DO NOT REPLY [Bug 25235] New: - The problem of the method "request.setCharacterEncoding"

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=25235>.
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=25235

The problem of  the  method "request.setCharacterEncoding"

           Summary: The problem of  the  method
                    "request.setCharacterEncoding"
           Product: Tomcat 5
           Version: 5.0.16
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: agilejava@hotmail.com


I'm from China,so I must use the character GB2312.

When I type the code on tomcat5:

request.setCharacterEncoding("gb2312");

It does not worked well,and the output is not Chinese character .

When I test the same code on tomcat4.12 today,it worked well,and the output is 
Chinese character.

I test these codes:

String user = request.getParameter("username");
String user2 = new String(user.getBytes("iso8859-1"));

on tomcat5,it workd well too.

Maybe this is not a bug,but request.setCharacterEncoding("gb2312") produced a 
different result,I think this is not up to snuff.

Thank you!

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org