Return-Path: X-Original-To: apmail-incubator-jspwiki-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jspwiki-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3291CE226 for ; Thu, 17 Jan 2013 14:58:26 +0000 (UTC) Received: (qmail 97245 invoked by uid 500); 17 Jan 2013 14:58:26 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 94767 invoked by uid 500); 17 Jan 2013 14:58:18 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 93200 invoked by uid 99); 17 Jan 2013 14:58:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 14:58:15 +0000 Date: Thu, 17 Jan 2013 14:58:15 +0000 (UTC) From: =?utf-8?Q?J=C3=BCrgen_Weber_=28JIRA=29?= To: jspwiki-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (JSPWIKI-396) UTF-8 characters in wiki pages incorrectly rendered if served by Weblogic MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JSPWIKI-396?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D135= 56241#comment-13556241 ]=20 J=C3=BCrgen Weber commented on JSPWIKI-396: -------------------------------------- OK, this is quite subtle. Weblogic relies on that the wrapping ServletOutpu= tStream is an OutputStream, i.e. backed by a byte[]. For u umlaut (Unicode = C3 BC) Weblogic strangely sends =20 -61 FFFFFFFFFFFFFFC3=20 -68 FFFFFFFFFFFFFFBC In byte[] this ends as C3 BC, new String(C3 BC) correctly gives u umlaut. But currently WikiJSPFilter uses a CharArrayWriter, which uses char[] and s= tores u umlaut as FFC3, FFBC.char[].toString() yields the strange character= s one sees. For Tomcat this seems to work by chance, probably the ServletFi= lter returns C3 BC as two chars which the browser combines into the unicode= char. U+00FC=09=C3=BC=09c3 bc=09u umlaut Actually, I don't see the need for WikiJSPFilter, it just caches, and cachi= ng should be left to the appserver.=20 Anyway, the appended patch fixes the Weblogic problem and does not break To= mcat. =20 > UTF-8 characters in wiki pages incorrectly rendered if served by Weblogic= =20 > -------------------------------------------------------------------------= - > > Key: JSPWIKI-396 > URL: https://issues.apache.org/jira/browse/JSPWIKI-396 > Project: JSPWiki > Issue Type: Bug > Affects Versions: 2.9 > Reporter: J=C3=BCrgen Weber > Assignee: Glen Mazza > Priority: Minor > Attachments: .jpg, .jpg, main_de.png, screenshot-1.jpg > > > The Germain Main.txt starts with Herzlichen Gl=C3=BCckwunsch. > If the page is served by Weblogic Server, the umlaut is rendered with FFC= 3 and FFBC in Boxes, both with Firefox and IE. Served by Geronimo, it's fin= e. > Herzlichen Gl=EF=BF=83=EF=BE=BCckwunsch > Firefox page info says, page encoding is UTF-8. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira