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 2001/05/21 04:18:31 UTC
[Bug 460] - Servlet Request getCharacterEncoding returns Incorrect value on Netscape. BugRat Report#784
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=460
*** shadow/460 Sun May 20 17:20:28 2001
--- shadow/460.tmp.23961 Sun May 20 19:18:30 2001
***************
*** 1,19 ****
! Bug#: 460
! Product: SAPI
! Version: 4.0.b1
! Platform:
! OS/Version:
! Status: NEW
! Resolution:
! Severity: Normal
! Priority: High
! Component:
! AssignedTo: tomcat-dev@jakarta.apache.org
! ReportedBy: tim_tye@usa.net
! URL:
! Cc:
! Summary: Servlet Request getCharacterEncoding returns Incorrect value on Netscape. BugRat Report#784
!
The servlet request getCharacterEncoding method always returns the string "ISO-8859-1". I have set the character set of the response using method setContentType() in the previous execution to "text/html charset=UTF-8". Both Netscape and Internet Explorer recognize this charset as eight bit compressed Unicode and correctly display and enter characters using the specified encoding. Netscape also returns the request header with a "charset=UTF-8" entry. However, IE does ont place a charset entry in the request header.
So, for Netscape, the getCharacteEncoding() method should return the string "UTF-8" (or converted to JAVA name 'UTF8'). For IE, the getCharacterEncoding() method should return NULL because no character encoding was specified in the request header.
-
--- 1,18 ----
! +============================================================================+
! | Servlet Request getCharacterEncoding returns Incorrect value on Netscape. |
! +----------------------------------------------------------------------------+
! | Bug #: 460 Product: Tomcat 3 |
! | Status: UNCONFIRMED Version: Unknown |
! | Resolution: Platform: All |
! | Severity: Normal OS/Version: All |
! | Priority: High Component: Unknown |
! +----------------------------------------------------------------------------+
! | Assigned To: Larry.Isaacs@sas.com |
! | Reported By: tim_tye@usa.net |
! | CC list: Cc: |
! +----------------------------------------------------------------------------+
! | URL: |
! +============================================================================+
! | DESCRIPTION |
The servlet request getCharacterEncoding method always returns the string "ISO-8859-1". I have set the character set of the response using method setContentType() in the previous execution to "text/html charset=UTF-8". Both Netscape and Internet Explorer recognize this charset as eight bit compressed Unicode and correctly display and enter characters using the specified encoding. Netscape also returns the request header with a "charset=UTF-8" entry. However, IE does ont place a charset entry in the request header.
So, for Netscape, the getCharacteEncoding() method should return the string "UTF-8" (or converted to JAVA name 'UTF8'). For IE, the getCharacterEncoding() method should return NULL because no character encoding was specified in the request header.