cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artur Bialecki" <ar...@digitalfairway.com>
Subject RE: form encoding problems
Date Mon, 03 Mar 2003 22:42:20 GMT
You might want to set the following init-params for cocon servlet
in your web.xml

form-encoding to UTF-8
container-encoding to ISO8859-1

Artur...

> -----Original Message-----
> From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk] 
> Sent: March 3, 2003 1:06 PM
> To: cocoon-dev@xml.apache.org
> Subject: form encoding problems
> 
> 
> Hi All,
> 
> This is possibly a trivial mistake ... but I never came across it 
> before.
> 
> I have a search form for searching Lucene. Mozilla confirms 
> the page is 
> in UTF-8 encoding.
> 
> I enter a string with accented characters into the query field. eg 
> 'éclair' (e-acute).
> 
> The form comes back with the string now reading 'éclair'. (A-tilde, 
> Copyright sign). Mozilla says the encoding is still UTF-8. (The value 
> has been picked up by an InputModule and fed via the SiteMap to XSLT).
> 
> The query string in the URL reads 'query=%C3%A9clair', which are the 
> unicodes for 'A-tilde' and 'Copyright' characters. (Which would imply 
> to me that the Browser incorrectly encoded the query.)
> 
> This makes me feel like I have done something really dumb, 
> but I cannot 
> work out what ;)
> 
> Incidentally, the search form in the Cocoon Samples does exactly the 
> same thing!!
> 
> Any suggestions?
> 
> regards Jeremy
> 
> 



Mime
View raw message