R: [opencms-dev] strange encoding (bug ? ) openCMS alpha3

Stefano Suzzi s.suzzi at protesa.it
Wed Mar 9 12:31:39 CET 2005


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