cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <Alfred.Nathan...@swx.com>
Subject RE: FW: Escaping in XSP Logic
Date Fri, 05 Dec 2003 10:17:35 GMT
For Java code inside XSPs you have to use Unicode escapes:

  ç = \u00E7

See http://www.unicode.org/charts/PDF/U0080.pdf for other Latin-1
characters.

HTH, Alfred.

> -----Original Message-----
> From: Alexandre Victoor [mailto:alexandre.victoor@fr.adp.com]
> Sent: Freitag, 5. Dezember 2003 09:39
> To: users@cocoon.apache.org
> Subject: Re: FW: Escaping in XSP Logic
> 
> 
> Hi
> You should perhaps externalize your hard-coded string 
> messages in a java 
> class or a property file or something like that...
> 
> Alex
> 
> At 22:30 04/12/2003 +0100, you wrote:
> >nobody ?
> >
> >-----Original Message-----
> >From: Yves Vindevogel [mailto:yves.vindevogel@implements.be]
> >Sent: woensdag 3 december 2003 19:21
> >To: users@cocoon.apache.org
> >Subject: Escaping in XSP Logic
> >
> >Hi,
> >
> >I have this syntax ...
> >
> ><xsp:logic>
> >     String sMessageNoResultsOther = "Pas de produits qui 
> commençent avec 
> > 1-...-9, ..." ;
> ></xsp:logic>
> >
> >When I use the <xsp:expr> to put the string there, I lose my 
> "ç".  It's 
> >represented as "?".
> >I have this with all characters from "Iso-8859-1" with 
> "strange" chars.
> >
> >My XSP is declared with correct encoding
> ><?xml version="1.0" encoding="ISO-8859-1"?>
> >
> >Is there a way to avoid this, or to use escaping in xsp:logic ?
> >I tried with &#231;   but that's no help.
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



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


Mime
View raw message