View | Details | Raw Unified | Return to bug 28875
Collapse All | Expand All

(-)jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/ErrorReportValve.java (-7 / +5 lines)
Lines 284-302 Link Here
284
284
285
        try {
285
        try {
286
286
287
            Writer writer = response.getReporter();
288
289
            if (writer != null) {
290
291
                Locale locale = Locale.getDefault();
292
293
                try {
287
                try {
294
                	response.setContentType("text/html");
288
                	response.setContentType("text/html");
295
                	response.setLocale(locale);
289
                response.setCharacterEncoding("utf-8");
296
                } catch (Throwable t) {
290
                } catch (Throwable t) {
297
                    if (container.getLogger().isDebugEnabled())
291
                    if (container.getLogger().isDebugEnabled())
298
                        container.getLogger().debug("status.setContentType", t);
292
                        container.getLogger().debug("status.setContentType", t);
299
                }
293
                }
294
295
            Writer writer = response.getReporter();
296
297
            if (writer != null) {
300
298
301
                // If writer is null, it's an indication that the response has
299
                // If writer is null, it's an indication that the response has
302
                // been hard committed already, which should never happen
300
                // been hard committed already, which should never happen

Return to bug 28875