Re: Tomcat/cocoon encoding problem

2002-06-10 Thread KOZLOV Roman

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: [EMAIL PROTECTED]
  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:[EMAIL PROTECTED]]
   Sent: vrijdag 7 juni 2002 16:47
   To: [EMAIL PROTECTED]
   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat/cocoon encoding problem

2002-06-10 Thread Michael Mangeng

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 encodingISO-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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
   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:[EMAIL PROTECTED]]
Sent: vrijdag 7 juni 2002 16:47
To: [EMAIL PROTECTED]
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: [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]




Re: Tomcat/cocoon encoding problem

2002-06-10 Thread KOZLOV Roman

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 encodingISO-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 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
 Sent: vrijdag 7 juni 2002 16:47
 To: [EMAIL PROTECTED]
 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: [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]


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




RE: Tomcat/cocoon encoding problem

2002-06-10 Thread Vadim Gritsenko

 From: Michael Mangeng [mailto:[EMAIL PROTECTED]]
 
 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):

As of Cocoon 2.0.3 (which has some XSP fixes) it should work like this:

 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 How to use german umlauts on english *nix systems:
 
 sitemap.xmap:
 Use encodingISO-8859-1/encoding in the according (e.g. html)
 map:serializer tag.
 
 XML/XSP:
 Use: ?xml version=1.0 encoding=ISO-8859-1?
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

If you have time, try it.


Regards,
Vadim

 
 greetings
 mike


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Tomcat/cocoon encoding problem

2002-06-08 Thread Jan Uyttenhove



Try to 
start the jvm (tomcat startup) with property 
-Dfile.encoding=ISO8859_1

Maybe 
you should choose another encoding, I used ISO8859_1 to solve a similar problem 
with french characters.

Hope 
this helps.

Greetz,

Jan


visit us @ http://www.xume.be


  -Original Message-From: Michael Mangeng 
  [mailto:[EMAIL PROTECTED]]Sent: vrijdag 7 juni 2002 
  16:47To: [EMAIL PROTECTED]Subject: 
  Tomcat/cocoon encoding problem
  Hi
  
  I´ve set the encoding of both the xsp and the xml 
  serializer correctly. Afteri requestthe xml i get the right 
  encoding - ISO-8859-1 in the ?xml ... ? tag but german umlaut´s like 
  äöü are replacedby '?'.
  
  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 cocoonthatthe umlauts arecorrectly displayed 
  ?
  
  greetings 
  mike


Re: Tomcat/cocoon encoding problem

2002-06-08 Thread Michael Mangeng



That didn´t do it ;-(

*searching* 

thanx anyway
mike

  - Original Message - 
  From: 
  Jan 
  Uyttenhove 
  To: [EMAIL PROTECTED] 
  
  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_1
  
  Maybe you should choose another encoding, I used ISO8859_1 to solve a 
  similar problem with french characters.
  
  Hope 
  this helps.
  
  Greetz,
  
  Jan
  
  
  visit us @ http://www.xume.be
  
  
-Original Message-From: Michael Mangeng 
[mailto:[EMAIL PROTECTED]]Sent: vrijdag 7 juni 2002 
16:47To: [EMAIL PROTECTED]Subject: 
Tomcat/cocoon encoding problem
Hi

I´ve set the encoding of both the xsp and the 
xml serializer correctly. Afteri requestthe xml i get the right 
encoding - ISO-8859-1 in the ?xml ... ? tag but german umlaut´s like 
äöü are replacedby '?'.

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 cocoonthatthe umlauts arecorrectly 
displayed ?

greetings 
mike