cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Painter-Wakefield <paint...@mc.duke.edu>
Subject Re: FW: Escaping in XSP Logic
Date Thu, 04 Dec 2003 22:21:43 GMT




I am not a Java expert!  My guess, it looks like an encoding problem,
perhaps due to your XML editor, or some oddity within the Cocoon pipeline.

I tried this in my environment (C2.1, Tomcat, using Eclipse+Sunbow for
coding) and it worked fine when I set the XSP source encoding to
iso-8859-1.  When I used UTF-8 encoding and the entity reference &#231; it
worked fine.  When I used UTF-8 encoding and put the ç directly in the
code, I got a Cocoon processing exception (java.io.UTFDataFormatException):
"Invalid byte 2 of 3-byte UTF-8 sequence".

So my guess is that the Sunbow editor saved the code wrong for the encoding
my XML is supposed to be using.  Probably your best bet is to change your
source file encoding to UTF-8, and use the entity reference.

-Christopher



|---------+------------------------------->
|         |           "Yves Vindevogel"   |
|         |           <yves.vindevogel@imp|
|         |           lements.be>         |
|         |                               |
|         |           12/04/2003 04:30 PM |
|         |           Please respond to   |
|         |           users               |
|         |                               |
|---------+------------------------------->
  >--------------------------------------------------------------------------------------------------------------|
  |                                                                                      
                       |
  |       To:       <users@cocoon.apache.org>                                      
                             |
  |       cc:                                                                            
                       |
  |       Subject:  FW: Escaping in XSP Logic                                            
                       |
  >--------------------------------------------------------------------------------------------------------------|




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


Mime
View raw message