R: [opencms-dev] strange encoding (bug =?koi8-r?Q?=3F=20?=) openCMS alpha3
Andrey Darbinyan
adarby at bk.ru
Thu Mar 10 08:40:20 CET 2005
Thanks for the reply, Stefano!
The content-encoding property is always set to UTF-8 in my project (it is a default value). So this does not help, unfortunately.
The conversion technique you suggested should work, in fact i used a similar method and it worked. But this is just a lesser of two evils, not a real solution, because then offline version (that worked fine before) gets corrupted. I really think this is a problem/bug that needs to be investigated by opencms developers.
PS. yes, i tried request.setCharacterEncoding("UTF-8") too, did not work
Best regards,
Andrey
-----Original Message-----
From: "Stefano Suzzi" <s.suzzi at protesa.it>
To: "'Andrey Darbinyan'" <adarby at bk.ru>,"'The OpenCms mailing list'" <opencms-dev at opencms.org>
Date: Wed, 9 Mar 2005 12:31:39 +0100
Subject: R: [opencms-dev] strange encoding (bug ? ) openCMS alpha3
> Hi,
> I had the same problem,
> Most of the times I've resolved by setting the jsp resource property
> content-encoding to UTF-8 and touch or modify the jsp.
> Once I had to use the following conversion ( don t know why)
> String app = new
> String(request.getParameter(testo_elemento).getBytes("8859_1"),"UTF-8");
>
> I hope it helps.
> Stefano.
>
>
> -----Messaggio originale-----
> Da: Andrey Darbinyan [mailto:adarby at bk.ru]
> Inviato: mercoledЛ 9 marzo 2005 10.43
> A: opencms-dev at opencms.org
> Oggetto: [opencms-dev] strange encoding (bug ? ) openCMS alpha3
>
> Hello All,
>
> It seems that form parameters encoded in UTF-8 are incorrectly treated as
> encoded in ISO-8859-
> 1 in online version.
>
> Form is sent using POST method, encoding for the page is set to utf-8.
> In offline version everything is working fine, but in online, the parameters
>
> are getting corrupted. Example: (ä) symbol becomes two symbols (Ã
> ) and so on.
>
> Can anyone confirm it? Is there any way to fix it?
>
> Best regards,
> Andrey
>
>
More information about the opencms-dev
mailing list