tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6569] New: - setLocale() doesn't set the Content-Type charset attribute
Date Wed, 20 Feb 2002 08:03:50 GMT
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=6569>.
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=6569

setLocale() doesn't set the Content-Type charset attribute

           Summary: setLocale() doesn't set the Content-Type charset
                    attribute
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: hans@gefionsoftware.com


According to the 2.3 spec, setLocale() should set the Content-Type header's
charset attribute, but this sample returns just "Content-Type: text/html":

public class LocaleServlet extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
	throws IOException, ServletException {
	res.setContentType("text/html");
	res.setLocale(Locale.JAPANESE);
	PrintWriter out = res.getWriter();
	out.println("Hello!");
    }
}

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


Mime
View raw message