cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vaduvoiu Tiberiu <vaduvoiut...@yahoo.com>
Subject Re: serialize type question
Date Wed, 04 Jul 2007 07:48:03 GMT
my serializer:

<map:serializers default="xml">
      <map:serializer name="xhtml" logger="sitemap.serializer.xml"
        mime-type="text/html" src="org.apache.cocoon.serialization.XMLSerializer">
        <omit-xml-declaration>yes</omit-xml-declaration> 
         <doctype-public>-//W3C//DTD HTML 4.0 Transitional//EN</doctype-public>
         <encoding>UTF-8</encoding>
         http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
        <indent>no</indent>
      </map:serializer>

this my serializer..so I have the encoding set to utf-8...but still, my xml starts with  <?xml
version="1.0" 
encoding="ISO-8859-1" ?> 

however, I have noticed that in firefox if I right click on the page and click "view page
info" it says: encoding - utf-8. it's very wierd

----- Original Message ----
From: Jasha Joachimsthal <j.joachimsthal@hippo.nl>
To: users@cocoon.apache.org
Sent: Wednesday, July 4, 2007 10:01:25 AM
Subject: RE: serialize type question

Hi there,

Did you try"

<map:serializer logger="sitemap.serializer.xml" mime-type="text/xml;
charset=UTF-8" name="xml-utf8"
src="org.apache.cocoon.serialization.XMLSerializer">
        <encoding>UTF-8</encoding>
      </map:serializer> 

And then use <map:serialize type="xml-utf8"/>

Regards,

Jasha Joachimsthal

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

www.hippo.nl

> -----Original Message-----
> From: Vaduvoiu Tiberiu [mailto:vaduvoiutibi@yahoo.com] 
> Sent: woensdag 4 juli 2007 8:38
> To: users@cocoon.apache.org
> Subject: serialize type question
> 
> I have a question: if my serialize type is the type 
> xml(serialize type="xml"), my resulted xml file has encoding 
> ISO-8859-1. How can I change this to utf-8? so this is in my sitemap:
> 
>       <map:match pattern="*/*/news/bussines.xml">
>       <map:aggregate element="root" label="source">
>           
>            <map:part element="dasl" 
> src="cocoon:/{1}/{2}/documents/search"/>
>         </map:aggregate>
>         <map:transform src="transformers/rss.xsl"/>
>         <map:transform type="i18n">
>           <map:parameter name="locale" value="en"/>
>         </map:transform>
>         <map:transform src="transformers/stripnamespaces.xsl"/>
>         <map:serialize type="xml"/>
>       </map:match>
> 
> my rss.xsl file starts with <?xml version="1.0" 
> encoding="UTF-8"?> <xsl:stylesheet.....
> 
> still, the resulting bussines.xml file has <?xml 
> version="1.0" encoding="ISO-8859-1" 
> ?> ...anybody know how can I change it? 10x
> 
> 
> 
> 
> 
> 
>  
> ______________________________________________________________
> ______________________
> It's here! Your new message!  
> Get new email alerts with the free Yahoo! Toolbar.
> http://tools.search.yahoo.com/toolbar/features/mail/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

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






 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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


Mime
View raw message