Thanks to all who replied... It's now working...

bbc

--- Leszek Gawron <[EMAIL PROTECTED]> wrote:

> BoBo C wrote:
> > Hi-
> > I've got an XSP page running under Cocoon 2.1 on a Linux machine that is 
> > accessing a MySQL
> > database. I'm placing the query return values (the <esql:get-string 
> > column="xxxxxx"/>
> elements)
> > between hardcoded XML begin and end tags, forming an XML document.  
> > Although I'm specifying:
> > -------------------------
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xsp:page 
> >     xmlns:xsp="http://apache.org/xsp"; 
> >     xmlns:xsp-request="http://apache.org/xsp/request/2.0"; 
> >     xmlns:esql="http://apache.org/cocoon/SQL/v2"; language="java">
> > -------------------------
> > at the top of the XSP page, the output it produces is encoded as: 
> > "<?xml version="1.0" encoding="ISO-8859-1" ?>".  
> > I need it to be UTF-8.  The output is intended to be an XML file for 
> > further transformation in
> the
> > pipeline.  I can't figure out where in sitemap.xmap or in the XSP page 
> > itself to ensure that
> the
> > output encoding is UTF-8...
> 
> this will not be a problem while transforming. your serializer is set to 
> iso-8859-1. Declare your xml serializer like this:
> 
> <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml" 
> name="xml" src="org.apache.cocoon.serialization.XMLSerializer">
>      <encoding>UTF-8</encoding>
> </map:serializer>
> 
> 
> -- 
> Leszek Gawron                                      [EMAIL PROTECTED]
> IT Manager                                         MobileBox sp. z o.o.
> +48 (61) 855 06 67                              http://www.mobilebox.pl
> mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to