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: [EMAIL PROTECTED] ! ReportedBy: [EMAIL PROTECTED] ! 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: [EMAIL PROTECTED] | ! | Reported By: [EMAIL PROTECTED] | ! | 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.
