Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 85422 invoked from network); 29 Sep 2010 09:27:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Sep 2010 09:27:34 -0000 Received: (qmail 599 invoked by uid 500); 29 Sep 2010 09:27:34 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 182 invoked by uid 500); 29 Sep 2010 09:27:31 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 175 invoked by uid 99); 29 Sep 2010 09:27:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 09:27:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [85.182.161.50] (HELO intern.proventis.net) (85.182.161.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 09:27:23 +0000 Received: from server1.proventis.net (unknown [192.168.22.250]) by intern.proventis.net (Postfix) with ESMTP id E14FC2C1CE for ; Wed, 29 Sep 2010 11:27:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by server1.proventis.net (Postfix) with ESMTP id CDDBCC4428C for ; Wed, 29 Sep 2010 11:26:49 +0200 (CEST) Received: from server1.proventis.net ([127.0.0.1]) by localhost (server1.proventis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20376-02 for ; Wed, 29 Sep 2010 11:26:48 +0200 (CEST) Received: from [192.168.22.130] (tmarkus.proventis.net [192.168.22.130]) by server1.proventis.net (Postfix) with ESMTP id C4A1BC440C0 for ; Wed, 29 Sep 2010 11:26:47 +0200 (CEST) Message-ID: <4CA30654.6040401@proventis.net> Date: Wed, 29 Sep 2010 11:26:44 +0200 From: Thomas Markus Organization: proventis GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.9) Gecko/20100914 SUSE/3.1.4 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.4 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: form encoding issues References: <4CA302CA.4050508@kantl.be> In-Reply-To: <4CA302CA.4050508@kantl.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at proventis.net X-Virus-Checked: Checked by ClamAV on apache.org Hi, check out request character encoding. For tomcat look at http://confluence.atlassian.com/display/DOC/Configuring+Tomcat%27s+URI+encoding and in your tomcat installation at webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java that worked for me regards Thomas Am 29.09.2010 11:11, schrieb Ron Van den Branden: > Hi, > > I'm stumbling on a character encoding issue (cocoon-2.1.10) and really > can't see why. Apparently, text input in a form is passed on in a > wrong encoding. I've set Cocoon's default encoding in all thinkable > places as UTF-8: > > web.xml: > ======== > > Cocoon > > > container-encoding > UTF-8 > > > form-encoding > UTF-8 > > > > > sitemap.xmap > ============ > mime-type="text/html" name="xhtml" > pool-max="${xhtml-serializer.pool-max}" > src="org.apache.cocoon.serialization.XMLSerializer"> > -//W3C//DTD XHTML 1.0 Transitional//EN > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd > > UTF-8 > > > Yet, when I execute following pipeline: > > > > > > > > > > ...with following minimal source files: > > test.xml > ======= > > > > test.xsl (which will mainly echo the previous input) > ====== > > version="2.0"> > > > > > > > >
> > >
>

current input:

> > >
>
> > Yet, entering a string with accented characters, like e.g. 'très > annoying', this comes out as: 'très annoying'... > On the other hand, when entering the according URL > () directly, the > characters are passed on correctly. Does anyone know how this can be > fixed? > > Any hints much appreciated! > > Ron Van den Branden > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org