cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <r-koz...@opencascade.com>
Subject Re: Tomcat/cocoon encoding problem
Date Mon, 10 Jun 2002 08:10:13 GMT
There is another solution (when using Tomcat) which is independent of a system
locale - to use default ("UTF-8") encoding for cocoon's components and in
client's browser.
The main problem which I've faced implementing the "UTF-8" solution is decoding
request parameters. However it is easy to fix it just using Tomcat's filters
(see
<CATALINA_HOME>\webapps\examples\WEB-INF\classes\filters\SetCharacterEncodingFilter.*).

Roman

Michael Mangeng wrote:

> Hi
>
> thanx for your help but i´ve already solved the problem with the help of Jan
> Uyttenhove.
> My locale settings on the linux box had to be changed too.
>
> I´ve written this points together: (hope they help if sombody get the same
> probs):
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> How to use german umlauts on english *nix systems:
>
> Set *nix locale to de_AT (or de_DE):
> localedef -c -i de_AT -f ISO-8859-1 de_AT
>
> Set LANG (system environment var) to de_AT (or de_DE)
> export LANG='de_AT'
>
> Before starting Tomcat set:
> $CATALINA_OPTS to '-Dfile.encoding=ISO8859_1'
>
> sitemap.xmap:
> Use <encoding>ISO-8859-1</encoding> in the according (e.g. html)
> <map:serializer> tag.
>
> XML/XSP:
> Use: <?xml version="1.0" encoding="ISO-8859-1"?>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>
> greetings
> mike
> ----- Original Message -----
> From: "KOZLOV Roman" <r-kozlov@opencascade.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Monday, June 10, 2002 9:17 AM
> Subject: Re: Tomcat/cocoon encoding problem
>
> >     Hi Michael,
> >
> >     Did you set the proper encoding for used cocoon's components
> > (generator, transformer and so on)? I imagine that serializer has it
> > because you wrote that the result XML encoding is ok. What about other
> > components?
> >
> >     Roman
> >
> > Michael Mangeng wrote:
> >
> > > That didn´t do it ;-( *searching* thanx anywaymike
> > >
> > >      ----- Original Message -----
> > >      From: Jan Uyttenhove
> > >      To: cocoon-users@xml.apache.org
> > >      Sent: Friday, June 07, 2002 5:30 PM
> > >      Subject: RE: Tomcat/cocoon encoding problem
> > >       Try to start the jvm (tomcat startup) with property
> > >      -Dfile.encoding=ISO8859_1Maybe you should choose another
> > >      encoding, I used ISO8859_1 to solve a similar problem with
> > >      french characters.Hope this helps.Greetz,Janvisit us @
> > >      http://www.xume.be
> > >
> > >           -----Original Message-----
> > >           From: Michael Mangeng
> > >           [mailto:michael.mangeng@ideefix.net]
> > >           Sent: vrijdag 7 juni 2002 16:47
> > >           To: cocoon-users@xml.apache.org
> > >           Subject: Tomcat/cocoon encoding problem
> > >
> > >           Hi I´ve set the encoding of both the xsp and the
> > >           xml serializer correctly. After i request the xml
> > >           i get the right encoding - ISO-8859-1 in the <?xml
> > >           ... ?> tag but german umlaut´s like äöü are
> > >           replaced by '?'. I´ve noticed the same problem
> > >           when i use beans on my JSP Pages (without cocoon;
> > >           only tomcat)(Using äöü on a jsp works - but as
> > >           soon as i set the data in a bean and then request
> > >           it back - i have äöü instead of the umlauts in my
> > >           string). I´m using linux 2.4.17, jdk1.3.1, tomcat
> > >           4.1.2alpha and cocoon2.0.2. So... Is there a
> > >           anywhere a setting for the jvm, tomcat or cocoon
> > >           that the umlauts are correctly displayed
> > >           ? greetingsmike
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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>


---------------------------------------------------------------------
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