[opencms-dev] Problems with special characters

Martin van den Bemt mvdb at ibl-software.nl
Mon Sep 5 12:05:18 CEST 2005


Just encode the text using javascript or post the parameter instead of using
gets (and make sure you use eg UTF-8 for the page encoding)


Mvgr,
Martin 

-----Oorspronkelijk bericht-----
Van: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Namens Gonzalez, Arnau (GE Consumer
Finance,consultant)
Verzonden: maandag 5 september 2005 11:55
Aan: opencms-dev at opencms.org
Onderwerp: [opencms-dev] Problems with special characters

Hello,

Passing a text as a parameter from a jsp to another jsp, the special
characters change.
For example, this line (text.jsp just return the text):

<h1>http://localhost:8080/text.jsp?text=¡hello!</h1>

shows this: ¡hello!

I've found that if I use the hex value instead of the char it works, but the
problem is that this texts is introduced by the user and is not any
practical to obly the user to know the hex codes.

How can I solve it?

Arnau


_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list