Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 25509 invoked from network); 11 Feb 2004 07:59:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Feb 2004 07:59:36 -0000 Received: (qmail 43595 invoked by uid 500); 11 Feb 2004 07:58:58 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 43500 invoked by uid 500); 11 Feb 2004 07:58:58 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 43471 invoked from network); 11 Feb 2004 07:58:57 -0000 Received: from unknown (HELO mail2.schaubroeck.be) (193.75.212.6) by daedalus.apache.org with SMTP; 11 Feb 2004 07:58:57 -0000 Received: (from root@localhost) by mail2.schaubroeck.be (8.12.3/8.12.3/ESMTP) id i1B7x82p020072 for users@cocoon.apache.org; Wed, 11 Feb 2004 08:59:08 +0100 Received: from PCJH ([193.74.195.27]) by mail2.schaubroeck.be (8.12.3/8.12.3/ESMTP) with SMTP id i1B7wmpD020004 for ; Wed, 11 Feb 2004 08:58:48 +0100 Message-ID: <000901c3f074$f1062450$1bc34ac1@PCJH> From: "Jan Hoskens" To: References: <000901c3efc2$7a6a8140$1bc34ac1@PCJH> Subject: AW: Special chars problem Date: Wed, 11 Feb 2004 08:59:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scan: by Schaubroeck 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 After searching the archives, I found some stuff about the encoding in cocoon. I tried changing the ISO-8859-1 to UTF-8 in the web.xml, but that did not change the problem. (http://marc.theaimsgroup.com/?t=106760662600010&r=1&w=2)When I passed the url, it still was in the wrong format 'A?'(String assuming Unicode instead of UTF-8). I found a wiki page concerning encoding in cocoon at http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterEncoding. I fixed my problem by applying a conversion to all parameters in my flow that may contain an incoming url. This conversion is also stated in the wiki page: value = new String(value.getBytes("ISO-8859-1"), "UTF-8");So whenever you're using parameters and passing something that's UTF-8, do that conversion to avoid problems concerning the special chars.Hope this helps others!:)Bye, Jan ----- Original Message ----- From: "Jan Hoskens" To: Sent: Tuesday, February 10, 2004 11:41 AM Subject: Special chars problem > Hi, > > I'm creating a link on a page that contains a special char '�'. When I look > at the link this gets translated to '%C3%9C'. When this gets passed to my > flow (link is an xml that will be edited by woody/flow combination) as a > parameter, I get '�?'. Somewhere the encoding is done wrong, but I can't > figure out where. > > Thankz, > > Jan > > > --------------------------------------------------------------------- > 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