You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@swisscom.com on 2003/03/25 14:12:59 UTC

Encoding problems

Hi,
I have xsp pages, and all my parameters with accents (é, è, ô,...) changes into things like "é",...
I tried diferent encoding into my pages (like <?xml version="1.0" encoding="ISO-8859-1"?>), but nothing seems to work! 
how can I keep the accents?

Thanks

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


Re: Encoding problems

Posted by Yury Mikhienko <yu...@mobicomk.donpac.ru>.
On Tue, 25 Mar 2003 14:12:59 +0100
<Ma...@swisscom.com> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes into things like "ц╘",...
> I tried diferent encoding into my pages (like <?xml version="1.0" encoding="ISO-8859-1"?>), but nothing seems to work! 
> how can I keep the accents?
> 

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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