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 2002/02/20 09:03:50 UTC

DO NOT REPLY [Bug 6569] New: - setLocale() doesn't set the Content-Type charset attribute

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>