cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: encoding of form data
Date Tue, 28 May 2002 21:06:49 GMT
> From: Gerhard Hipfinger [mailto:gerhard.hipfinger@openforce.at]
> 
> Hi!
> 
> I know this question was asked a month ago, but the thread ended
without
> a real solution to the problem.
> 
> The problem in short:
> Form data with special chars (i. e. german umlauts) is not encoded
> correctly in the FormValidatorAction.
> 
> The suggested solutions were:
> 
> 1) set UNIX: LOCALE=...
> 
> 2) set JVM -Dfile.encoding option
> 
> 3) set request.setCharacterEncoding("utf-8")
> 
> I think 1 and 2 are more than dirty hacks, and they don't work for me.
> 
> 3 also didn't work. I guess it's quite clear because it should be
executed
> before any request parameter are read.
> 
> In the sitemap examples (which I used for my tests) the
FormValidatorAction is
> processed befor any of my xml/xsp files were touched.

You must do it in own action before FormValidatorAction.

Vadim


> I guess the best solution is a parameter passed to the
FormValidatorAction
> which specifies the encoding type of the form data.
> 
> Or has anyone a working solution for this?
> 
> Thanks,
> Gerhard
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message