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 7826] New: - ManagerServlet response is garbled
Date Mon, 08 Apr 2002 07:15:34 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=7826>.
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=7826

ManagerServlet response is garbled

           Summary: ManagerServlet response is garbled
           Product: Tomcat 4
           Version: 4.0.4 Beta 2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kare@highway.ne.jp


In Japanese environment, ManagerServlet responses garbled message when access 
management URL.
(eg. http://localhost:8080/manager/list)

The reason of this problem is ManagerServlet reesponse isnot set charset in 
contentType.

If following patch applied to org/apache/catalina/servlets/ManagerServlet.jar, 
this problem is fixed:

--- ManagerServlet.java.orig	Wed Mar 27 03:12:46 2002
+++ ManagerServlet.java	Mon Apr  8 15:37:50 2002
@@ -267,7 +267,7 @@
         String war = request.getParameter("war");
 
         // Prepare our output writer to generate the response message
-        response.setContentType("text/plain");
+        response.setContentType("text/plain; charset=UTF-8");
         PrintWriter writer = response.getWriter();
 
         // Process the requested command

--
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