The handling of non-UTF-8 input encoding is flawed for XSPs. Somewhere along the line from parsing the foo.xsp input, applying the core-logicsheet xsp.xsl and writing the generated code into foo_xsp.java, a codeset translation is missed or done the wrong way around.
Accents in text nodes inside an XSP work, but for the wrong reason: They are passed through XSLTExtension.escapeString, where all non-7bit-ASCII character are transformed into \uxxxx escape sequences. As work-around for your problem, you can use \uxxxx in your xsp:logic and xsp:expr bits (same as you would need in plain Java source unless you use an UTF-8 editor or tell the Java compiler to expect input in ISO-8859-1). The codes for xxxx you can find in http://www.unicode.org/charts/PDF/U0080.pdf. To get a permanent solution, I recommend to prepare a small example and file a bug report on http://nagoya.apache.org/bugzilla/index.html HTH, Alfred. > -----Original Message----- > From: Yves Vindevogel [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 8. Oktober 2003 10:09 > To: [EMAIL PROTECTED] > Subject: RE: French characters within xsp:logic > > > ISO-8859-1 > > <map:serializer logger="sitemap.serializer.html" > mime-type="text/html" name="html" pool-grow="4" pool-max="32" > pool-min="4" > src="org.apache.cocoon.serialization.HTMLSerializer"> > <buffer-size>1024</buffer-size> > <encoding>ISO-8859-1</encoding> > </map:serializer> > > > It works fine with all characters when they are not coming > from an xsp:logic > I think the compilation of the XSP looses the french characters. > That possible ? > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: woensdag 8 oktober 2003 1:52 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: French characters within xsp:logic > > > > > what is the encoding you use in your (final) html page? > > i guess that the content is coming to you in UTF and you try > to display it > using a different encoding > > i use to have similar problem when post data from an xsp-->html > > first of all try to set everything in UTF > > -- stavros > > > > On Wed, 8 Oct 2003, Yves Vindevogel wrote: > > > Hi > > > > I have this piece of code in XSP > > > > <xsp:logic> > > String sWelcome = ""; > > String sAbout = "" ; > > > > if (<xsp-session:get-attribute > name="lang"/>.equals("Nl")) > > { > > sWelcome = "Welkom" ; > > sAbout = "Privé" ; > > } ; > > > > if (<xsp-session:get-attribute > name="lang"/>.equals("Fr")) > > { > > sWelcome = "Bienvenue" ; > > sAbout = "Privé" ; > > } ; > > > > if (<xsp-session:get-attribute > name="lang"/>.equals("En")) > > { > > sWelcome = "Welcome" ; > > sAbout = "Private" ; > > } ; > > > > <div id="dTop"> > > > <span><xsp:expr>sWelcome</xsp:expr></span> > > > > --- more here -- > > > > > <span><xsp:expr>sAbout</xsp:expr></span> > > </div> > > </xsp:logic> > > > > > > This works fine for me, except, when showing the characters > in my output, > I > > get funny chars (looks like eastern European things) > > > > When I add this like <p>Privé</p> , I have no problems, but > within the > > xsp:logic, I get the strang behaviour. > > > > Anyone know a solution ?? > > > > > > > > Yves Vindevogel > > Implements > > > > Kempische Steenweg 206 - 3500 Hasselt - Belgium > > Tel+Fax: +32-11-43.55.76 Mobile: +32-478-80.82.91 > > [EMAIL PROTECTED] - www.implements.be > > > > > > First they ignore you. Then they laugh at you. Then they > fight you. Then > you > > win. > > Mahatma Ghandi. > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
