Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54595DAE4 for ; Wed, 15 May 2013 07:47:34 +0000 (UTC) Received: (qmail 90842 invoked by uid 500); 15 May 2013 07:47:30 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 90512 invoked by uid 500); 15 May 2013 07:47:25 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 90461 invoked by uid 99); 15 May 2013 07:47:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 07:47:24 +0000 X-ASF-Spam-Status: No, hits=0.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of 1983-01-06@gmx.net designates 212.227.17.22 as permitted sender) Received: from [212.227.17.22] (HELO mout.gmx.net) (212.227.17.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 07:47:16 +0000 Received: from 3capp-gmx-bs18.server.lan ([172.19.170.70]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MAAjv-1UnCav1bdh-00BKmd for ; Wed, 15 May 2013 09:46:56 +0200 Received: from [192.35.17.15] by 3capp-gmx-bs18.server.lan with HTTP; Wed May 15 09:46:56 CEST 2013 MIME-Version: 1.0 Message-ID: From: Michael-O <1983-01-06@gmx.net> To: users@tomcat.apache.org Subject: ErrorReportValve's char encoding ignored Content-Type: text/plain; charset=UTF-8 Date: Wed, 15 May 2013 09:46:56 +0200 (CEST) Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:twINELB6PJFvvNo4Xp2pXzGMpSjJIRCqRL7qSOg6Pz4 yEUvNedNdVpckiL8rUzzoaLDHVwQBo8x/tmwZ9TMWC2gWqJxpD 4/8evWySMDFDGvArG/nXGnbv+MMqZVuPxkd48vanblc+IWcl66 l8+5xWJ7pXN0Wt6hw/0OzLWpDRsTcLJgjuF+1Qjum31og0NcEp LtfXgQHbXqBoXOptKu4R28po8S3rIXA3AQihHLUI20QH/s21z9 J76MHfMEtmLw1M82lqNbbJ2zkMW39R8bqujltbxpgImbn2b/Cj 2zfmCo= X-Virus-Checked: Checked by ClamAV on apache.org Hi folks, I have modified the ErrorReportValve's messages outside of the one-byte range and the output got mangled. The response does not contain a char encoding anymore. I know that the error valve does this: response.setContentType("text/html"); response.setCharacterEncoding("utf-8"); but the setCharEnc method is completely ignored. Because the var usingWriter is already set to true. This happens in the ApplicationDispatcher#doForward line 393/394 when a servlet performs a forward. Though a response.getReporter() is used but this one is completely unaware of the char encoding. I am on Tomcat 6.0.35. I presume this to be a bug. Should I file a BZ issue? Michael --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org