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=24065>. 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=24065 setLocale() still overrides charset from setContentType(). Summary: setLocale() still overrides charset from setContentType(). Product: Tomcat 5 Version: 5.0.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Servlet & JSP API AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Make a servlet with this service method: public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { response.setContentType("text/html; charset=ISO-8859-4"); java.io.PrintWriter writer = response.getWriter(); writer.println("Wakawaka"); writer.flush(); } Requests to this servlet yield this response in JWSDP 1.3: HTTP/1.1 200 OK X-Powered-By: Servlet/2.4 Content-Type: text/html; charset=ISO-8859-4 Date: Thu, 23 Oct 2003 15:35:52 GMT Server: Sun-Java-System/JWSDP-1.3 Connection: close Wakawaka modify the servlet to include a call to setLocale() as we do in the resolution of this issue: public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { response.setContentType("text/html; charset=ISO-8859-4"); response.setLocale(java.util.Locale.GERMAN); java.io.PrintWriter writer = response.getWriter(); writer.println("Wakawaka"); writer.flush(); } Requests to this servlet yield this response in JWSDP 1.3: HTTP/1.1 200 OK X-Powered-By: Servlet/2.4 Content-Type: text/html; charset=ISO-8859-1 Content-Language: de Date: Thu, 23 Oct 2003 15:36:31 GMT Server: Sun-Java-System/JWSDP-1.3 Connection: close Wakawaka CONCLUSION: This behaviour is not correct. The charset should be ISF-8859-4. This bug is present in JWSDP 1.3. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]