You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2001/01/16 19:08:50 UTC

BugRat Report #784 has been filed.

Bug report #784 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/784>

REPORT #784 Details.

Project: Servlet API
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: 4.0.b1
   JVM Release: 1.3
   Operating System: Linux (Mandrake)
   OS Release: 7.2
   Platform: Intel

Synopsis: 
Servlet Request getCharacterEncoding returns Incorrect value on Netscape.

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.