cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: Problem with encoding non-english request parameters
Date Tue, 12 Mar 2002 08:09:14 GMT
> Piroumian, Konstantin wrote:
>
> >>On Mon, 11 Mar 2002 18:32:26 +0300
> >>yuryx <yuryx@mobicomk.donpac.ru> 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:kazik@european-union.info
> >>
> >
> Is serializer serialized request also? (this stupid question may be...)

Do you need to set encoding on the coming request? This can be done with an
action.

>
> Yury.
>
>
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message