Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 4294 invoked from network); 3 Feb 2004 01:49:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Feb 2004 01:49:34 -0000 Received: (qmail 72042 invoked by uid 500); 3 Feb 2004 01:49:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 71983 invoked by uid 500); 3 Feb 2004 01:49:10 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 71951 invoked from network); 3 Feb 2004 01:49:10 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by daedalus.apache.org with SMTP; 3 Feb 2004 01:49:10 -0000 Received: (qmail 9713 invoked by uid 65534); 3 Feb 2004 01:49:17 -0000 Received: from a183069.studnetz.uni-leipzig.de (EHLO gmx.de) (139.18.183.69) by mail.gmx.net (mp018) with SMTP; 03 Feb 2004 02:49:17 +0100 X-Authenticated: #3483660 Message-ID: <401EFE22.9010904@gmx.de> Date: Tue, 03 Feb 2004 02:49:22 +0100 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Character Conversion Trouble with Cocoon 2.1.3 and Resin 2.1.12 References: <1075307590.29593.201.camel@hostmaster.org> <1075429917.10818.248.camel@tom.geizhals.at> In-Reply-To: <1075429917.10818.248.camel@tom.geizhals.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello Thomas, in theory it should already work as we set the input encoding when parsing the resulting byte array: http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/jsp/java/org/apache/cocoon/generation/JSPGenerator.java?annotate=1.2#123 (line 123). This works at least for Tomcat, so I don't know if Resin has just a bug there. Maybe the servlet gurus can tell us more about the possible downsides of this patch. Unico, you have been the last one touching it :) BTW, the common parts of the different implementations of JSPEngine interface have been factored out of them into new classes JSPEngineServletConfig, *OutputStream, *Request, *Response. So it's only one place where this has to be changed: http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/jsp/java/org/apache/cocoon/components/jsp/JSPEngineServletResponse.java?annotate=1.1#78 Joerg On 30.01.2004 03:31, Thomas Zehetbauer wrote: > On Mit, 2004-01-28 at 17:33, Thomas Zehetbauer wrote: > >>In my JSP page I output a XML declaration with the encoding attribute >>set to UTF-8 and use a page contentType="text/xml; charset=UTF-8" >>declaration as well. When I use the JSTL format taglib to output a >>currency value the generated Euro symbol looks fine when I get it >>directly from the JSP. Unfortunately it gets damaged when I pipe it >>through the Cocoon JSP generator. Cocoon on the other hand works fine >>when I save the output of the JSP to a file and use the file generator >>on this. > > > Ok, I have just tracked down the problem and included a small patch for > Cocoon-2.1.3. > > Tom