OK. I found the problem:

Tomcat by default uses ISO-8859-1 encoding when you submitting 
a form. So to correct the problem you have to translate it :

String newstr = new String(<xsp-request:get-parameter 
name="par"/>.getBytes("ISO-8859-1"));

Well, the question is : 

Is there any way to do this automaticly from the sitemap/cocoon.xconf
or etc.?

I'm using Tomcat 4.0.1, Cocoon 2.0

Alex.

> I know that this question maybe is not for Cocoon list. Nevertheless,
> 
> I've set 
> 
> <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
> 
> in the html form. 
> 
> When submitting the form with national characters (Russian) I recieve 
> parameters in unreadable charset. I'm not good neither in HTTP  nor in
> internationalization. Could anybody explain how to parse it correctly to
> convert whatever it is into correct UTF8 string?
> 
> Thanks,
> Alex.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to