cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volkm@r" <plsdontre...@arcor.de>
Subject Re: special characters
Date Wed, 22 Sep 2004 09:21:58 GMT
Adriano Smith wrote:
> When passing values as url parameters is it possible to pass special
> characters such as & , + and #?
> 
> for example the url
> 
> http://xxx/mail?key=keyvalue&name=something
> 
> how can special characters such as &,# and + be included in the
> keyvalue? im not able to use them as they are considered as
> delimiters in the url.
> 

After reading RequestParameterEncoding [1] you might find it helpful to 
add this action to your components section

   <map:actions>
     <!-- http://wiki.apache.org/cocoon/RequestParameterEncoding -->
     <map:action name="set-encoding"
         src="org.apache.cocoon.acting.SetCharacterEncodingAction"/>
   </map:actions>

and to use this little snippet in your pipeline:

   <map:pipeline>
     <map:act type="set-encoding">
       <map:parameter name="form-encoding" value="utf-8"/>
     </map:act>
     ....
   </map:pipeline>

And don't forget to make sure your form is sent to the client with the 
same charset info that you're using in "form-encoding".

[1]<http://wiki.apache.org/cocoon/RequestParameterEncoding>
-- 
Volkm@r


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message