cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <lingererhu...@hotmail.com>
Subject Re: [Bug]PortalPageLabels can't handle non-ascii labelname
Date Fri, 24 Dec 2004 12:41:48 GMT
Sorry,missing line 91-92 
                    buffer.append(requestParameterName).append('=')
                        .append(SourceUtil.encode(key.toString()));
Here should be modified too.

Roy Huang
----- Original Message ----- 
From: "roy huang" <lingererhuang@hotmail.com>
To: <dev@cocoon.apache.org>
Sent: Friday, December 24, 2004 8:17 PM
Subject: Re: [Bug]PortalPageLabels can't handle non-ascii labelname


> Hi all:
>     I checked the source code,in PageLabelLinkService.java(2.1.6) line 227:
>     uri.append(parmName).append('=').append(SourceUtil.encode(label));<--here
>     One solution is using SourceUtil.encode(label,"utf-8") .
> 
> Roy Huang
>  
> ----- Original Message ----- 
> From: "roy huang" <lingererhuang@hotmail.com>
> To: <dev@cocoon.apache.org>
> Sent: Friday, December 24, 2004 7:52 PM
> Subject: [Bug]PortalPageLabels can't handle non-ascii labelname
> 
> 
> > Hi all:
> >     With help of wiki http://wiki.apache.org/cocoon/PortalPageLabels, I change portal
using label.It works fine until I use non-ASCII labelname ,the url generate by portal can't
recognize by portal.
> >     For example:
> >     If label name is:公告栏(Simplified Chinese),url is:portal-page?pageLabel=%B9%AB%B8%E6%C0%B8,it
won't work
> >     Because I'm using utf-8 encoding ,so I change url to portal-page?pageLabel=%E5%85%AC%E5%91%8A%E6%A0%8F,it
works
> >     
> >     So the bug is obviously caused by url encoding.
> > 
> >     WDYT?
> > 
> > Roy Huang
> >     
> >
Mime
View raw message