You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Igor Romanov <ri...@nizhny.ru> on 2001/03/10 20:12:45 UTC

[C2] How to specify encoding of doc. produced by HTML serializer?

Hello cocoon-users,

  %subj%

-- 
Cheers...
RiO                          mailto:rio@nizhny.ru



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] How to specify encoding of doc. produced by HTML serializer?

Posted by Tagunov Anthony <at...@nnt.ru>.
On Sat, 10 Mar 2001 22:12:45 +0300, Igor Romanov wrote:

> How to specify encoding of doc. produced by HTML serializer?

1) are you speaking of C1?

Then look into cocoon.properties and set up the encoding for
the text/html (or text/xhtml whatever you're using) serializer.

(It's even possible to describe there 

text/html-koi
and
text/html-win
serializers ther
and dynamicly put into you you resulting pages
directive <?cocoon-format type="text/html-koi"?>
or <?cocoon-format type="text/html-win"?>
thus dynamicly choosing the encoding of the resulting
page.)

Altering the encoding in cocoon.properites affects
a) the HTTP header that gets sent to the client (content-type=text/html; encoding=windows-1251)
b) how the UTF-8 java string are emmited to the output stream of the servlet

BTW: with some versions of Xerces there was a problem that cyrilica letters even with
proper encoding set got out to the browser as &#xyzw; sequences. That's because
they lacked windows-1251 and koi-8 support in Encodings.java somewhere in Xerces.

If you hit the trouble, email me and i'll send a fix to you and to the list.

2) are you speaking of C2? sorry, not familiar with that.. 

Best regards, Tagunov Anthony



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>