> On Mon, 11 Mar 2002 18:32:26 +0300
> yuryx <[EMAIL PROTECTED]> wrote:
>
> > Vadim Gritsenko wrote:
> >
> > >RTFM
> > >http://xml.apache.org/cocoon/userdocs/xsp/request.html:
> > >--------------------8<--------------------
> > >--------------------8<--------------------
> > >
> > >Vadim
> > >
> > Thanx for you help, Vadim, but I need have ,for additional, method for
> > JSP also...
> > And manual request-value charset encoding work as with XSP and with JSP
> > :)
>
> I use SetCharacterEncodingFilter distributed with tomcat. in my web.xml
> it looks like:
>
> --- cut ---
>
>   <filter>
>     <filter-name>Set Character Encoding</filter-name>
>     <filter-class>filters.SetCharacterEncodingFilter</filter-class>
>     <init-param>
>       <param-name>encoding</param-name>
>       <param-value>ISO-8859-2</param-value>
>     </init-param>
>   </filter>
>
>   <filter-mapping>
>     <filter-name>Set Character Encoding</filter-name>
>     <url-pattern>/*</url-pattern>
>   </filter-mapping>
>
> --- cut ---
>
> Is there a better way in cocoon+tomcat to change character encoding
> globaly?

You can setup your serializer this way:

   <map:serializer name="html"   mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
     <encoding>iso8859-2</encoding>
   </map:serializer>

You can have serializers with different encodings in one sitemap.

Regards,
    Konstantin Piroumian

>
> --
> Kazimierz Pogoda
> mailto:[EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to