You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jean Pierre LeJacq <jp...@quoininc.com> on 2004/03/21 23:29:32 UTC

How to set character set encoding

I'm trying to set the character encoding for serialized document to
UTF-8 and seem unable to do so.  It always reverts to ISO-8859-1.
 I'm using tomcat-4.1.29, cocoon-2.1.4, and a recent cvs version of
lenya.

I've done the following:

* Set the encoding element on the xhtml serializer to utf-8 in the
  sitemap.xmap file.

* Set the init-params, container-encoding and form-encoding, in
  WEB-INF/web.xml to utf-8.

* Explicitly added <meta content="text/html; charset=UTF-8"
  http-equiv="Content-Type">.

Using a sniffer I see that the server is setting the Content-Type to
ISO-8859-1.

Anyone else having this problem?  Any solutions?

-- 
JP



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


Re: How to set character set encoding

Posted by Michael Wechner <mi...@wyona.com>.
Jean Pierre LeJacq wrote:

>I'm trying to set the character encoding for serialized document to
>UTF-8 and seem unable to do so.  It always reverts to ISO-8859-1.
> I'm using tomcat-4.1.29, cocoon-2.1.4, and a recent cvs version of
>lenya.
>
>I've done the following:
>
>* Set the encoding element on the xhtml serializer to utf-8 in the
>  sitemap.xmap file.
>  
>

the serializer might be taken from another sitemap:


michi@neptun:~/src/cocoon-lenya$ find src/webapp -name "*.xmap" -exec 
grep -l "iso-8859-1" {} \;
src/webapp/sitemap.xmap
src/webapp/lenya/pubs/blog/sitemap.xmap
src/webapp/lenya/pubs/default/usecase-bxeng.xmap
src/webapp/lenya/pubs/oscom/xopus.xmap
src/webapp/lenya/admin.xmap
src/webapp/lenya/info.xmap
src/webapp/lenya/lucene.xmap
src/webapp/lenya/usecase.xmap


HTH

Michi


>* Set the init-params, container-encoding and form-encoding, in
>  WEB-INF/web.xml to utf-8.
>
>* Explicitly added <meta content="text/html; charset=UTF-8"
>  http-equiv="Content-Type">.
>
>Using a sniffer I see that the server is setting the Content-Type to
>ISO-8859-1.
>
>Anyone else having this problem?  Any solutions?
>
>  
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


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


Re: How to set character set encoding

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Jean Pierre LeJacq wrote:

> I'm trying to set the character encoding for serialized document to
> UTF-8 and seem unable to do so.  It always reverts to ISO-8859-1.
>  I'm using tomcat-4.1.29, cocoon-2.1.4, and a recent cvs version of
> lenya.
> 
> I've done the following:
> 
> * Set the encoding element on the xhtml serializer to utf-8 in the
>   sitemap.xmap file.
> 
> * Set the init-params, container-encoding and form-encoding, in
>   WEB-INF/web.xml to utf-8.
> 
> * Explicitly added <meta content="text/html; charset=UTF-8"
>   http-equiv="Content-Type">.

cocoon has a bug with serialization:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26997




-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

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