Re: german umlaut!

2002-09-20 Thread Vadim Gritsenko

Wolle,

I was trying to reproduce your issue but failed. Can you put together 
small test case with short XML file, sitemap snippet, actual text 
output, and desired text output, and send this as an (zip) attachement?


Thanks,
Vadim



Wolle wrote:

>hi everybody!
>
>thank you very much for the help. but i still have the problem.
>the html and pdf output is ok. as soon as i produce text-output i get
>UTF-8 code although i forced cocoon to produce iso 8859-1 by using:
>
>  name="text" src="org.apache.cocoon.serialization.TextSerializer">
> iso-8859-1
> 
>
>the saved text-file is indeed  UTF-8 coded because the unix-command 'file'
>confirms the result.
>
>right now i am using a workaround by reencoding the saved file
>via: 'recode UTF-8 file.txt'
>
>
>i tested for quite a long time. this is a working solution without cocoon
>2.0.3.
>
>maybe there is more luck with cocoon 2.1.
>
>
>wolfgang weigel
>  
>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: german umlaut!

2002-09-10 Thread Wolle

hi everybody!

thank you very much for the help. but i still have the problem.
the html and pdf output is ok. as soon as i produce text-output i get
UTF-8 code although i forced cocoon to produce iso 8859-1 by using:


 iso-8859-1
 

the saved text-file is indeed  UTF-8 coded because the unix-command 'file'
confirms the result.

right now i am using a workaround by reencoding the saved file
via: 'recode UTF-8 file.txt'


i tested for quite a long time. this is a working solution without cocoon
2.0.3.

maybe there is more luck with cocoon 2.1.


wolfgang weigel




*Wolle, please check this. Maybe it can help you ;)
*
*Antonio Gallardo
*
*
*I guess Carsten helped me finding this out first ;-)
*
*So thanks to every guru here :-)
*
*Cocoon rules ;-)
*- Original Message -
*From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
*To: <[EMAIL PROTECTED]>
*Sent: Thursday, August 29, 2002 11:25 AM
*Subject: [SUMMARY] How to encode ISO-8859-1 characters into the Database?
*
*
*Barbara:
*
*Thank you Very much! It works fine now!
*
*Antonio Gallardo
*
**
*SOLUTION by Barbara Post :) :
*go to the sitemap and ensure that XML and HTML serializers have the
*following
*tag:
*
*iso-8859-1
*
**
*CAUSE by Barbara Post:
*Sitemap overrides XSP/XSL encoding
*
**
*PROBLEM by me :(
*
*I create the Database now using the following string:
*
*createdb -E LATIN1 -e mydb
*
*Where,
*LATIN1 is the encoding used by the database
*mydb is the name of the database
*
*Now When I wrote: "Olé"
*When I retrieve the values there are: "Olé"
*
*Also, I used at the beginning of the XSP pages the string:
*
*
*
*What is wrong?
*
**
*The first request:
*
*PLATAFORM:
*Cocoon 2.0.3
*Tomcat 4.1.9
*PostgreSQL 7.2.1.
*
*PROBLEM:
*
*If I store a string value, like "Olé" in the Database without using Cocoon.
*I
*retrieve it and see "Olé". The same string.
*
*With Cocoon:
*I need to store values to the Database like "Olé". I saw that the Cocoon
*manipulate the data like UTF-8 and not in the code  ISO-8859-1. How I can
*change this feature to make Cocoon work in ISO-8859-1 code?
*
*I hope it will help anybody :) And thanks again Barbara :)
*
*Antonio Gallardo
*
*
*
*El Martes, 10 de Septiembre de 2002 04:13, Wolle escribió:
*> hi!
*>
*> i tried to modify the sitemap.xmap in the following way:
*>
*>
*>   name="text" src="org.apache.cocoon.serialization.TextSerializer">
*>  iso-8859-1
*> 
*>
*> but the result was negativ. i wasn't able to find some other files for
*> changing the output to text-style. (i used grep for finding the string
*> UTF / iso)
*>
*> does anybody know another hint?
*>
*> wolfgang weigel
*>
*>
*> *Wolle wrote:
*> *> as soon as i try to get an output as txt-file (e.g. on a web-browser or
*> *> saving the content in a file) the german umlaut produced by the ue/oe
*> keys *> are produced wrong (e.g. ue as A1/4). but all encodings in the
*> xml/xsl *> file are correct. even the settings of the webbrowser are
*> correct. *>
*> *> the aim is to produce a proper text-output for latex.
*> *>
*> *> is the text-ouput of cocoon broken?
*> *>
*> *No. It is probably outputting UTF-8. I think you can choose the
*> *output encoding for the text serializer, check the default, and
*> *try to get the encoding you need (like ISO-8859-1).
*> *
*> *J.Pietschmann
*> *
*> *
*> *-
*> *Please check that your question  has not already been answered in the
*> *FAQ before posting. 
*> *
*> *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. 

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




Re: german umlaut!

2002-09-10 Thread Antonio Gallardo Rivera

Wolle, please check this. Maybe it can help you ;)

Antonio Gallardo


I guess Carsten helped me finding this out first ;-)

So thanks to every guru here :-)

Cocoon rules ;-)
- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 29, 2002 11:25 AM
Subject: [SUMMARY] How to encode ISO-8859-1 characters into the Database?


Barbara:

Thank you Very much! It works fine now!

Antonio Gallardo

*
SOLUTION by Barbara Post :) :
go to the sitemap and ensure that XML and HTML serializers have the
following
tag:

iso-8859-1

*
CAUSE by Barbara Post:
Sitemap overrides XSP/XSL encoding

*
PROBLEM by me :(

I create the Database now using the following string:

createdb -E LATIN1 -e mydb

Where,
LATIN1 is the encoding used by the database
mydb is the name of the database

Now When I wrote: "Olé"
When I retrieve the values there are: "Olé"

Also, I used at the beginning of the XSP pages the string:



What is wrong?

*
The first request:

PLATAFORM:
Cocoon 2.0.3
Tomcat 4.1.9
PostgreSQL 7.2.1.

PROBLEM:

If I store a string value, like "Olé" in the Database without using Cocoon.
I
retrieve it and see "Olé". The same string.

With Cocoon:
I need to store values to the Database like "Olé". I saw that the Cocoon
manipulate the data like UTF-8 and not in the code  ISO-8859-1. How I can
change this feature to make Cocoon work in ISO-8859-1 code?

I hope it will help anybody :) And thanks again Barbara :)

Antonio Gallardo



El Martes, 10 de Septiembre de 2002 04:13, Wolle escribió:
> hi!
>
> i tried to modify the sitemap.xmap in the following way:
>
>
>   name="text" src="org.apache.cocoon.serialization.TextSerializer">
>  iso-8859-1
> 
>
> but the result was negativ. i wasn't able to find some other files for
> changing the output to text-style. (i used grep for finding the string
> UTF / iso)
>
> does anybody know another hint?
>
> wolfgang weigel
>
>
> *Wolle wrote:
> *> as soon as i try to get an output as txt-file (e.g. on a web-browser or
> *> saving the content in a file) the german umlaut produced by the ue/oe
> keys *> are produced wrong (e.g. ue as A1/4). but all encodings in the
> xml/xsl *> file are correct. even the settings of the webbrowser are
> correct. *>
> *> the aim is to produce a proper text-output for latex.
> *>
> *> is the text-ouput of cocoon broken?
> *>
> *No. It is probably outputting UTF-8. I think you can choose the
> *output encoding for the text serializer, check the default, and
> *try to get the encoding you need (like ISO-8859-1).
> *
> *J.Pietschmann
> *
> *
> *-
> *Please check that your question  has not already been answered in the
> *FAQ before posting. 
> *
> *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. 
>
> 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. 

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




Re: german umlaut!

2002-09-10 Thread Wolle

hi!

i tried to modify the sitemap.xmap in the following way:



 iso-8859-1


but the result was negativ. i wasn't able to find some other files for
changing the output to text-style. (i used grep for finding the string
UTF / iso)

does anybody know another hint?

wolfgang weigel


*Wolle wrote:
*> as soon as i try to get an output as txt-file (e.g. on a web-browser or
*> saving the content in a file) the german umlaut produced by the ue/oe keys
*> are produced wrong (e.g. ue as A1/4). but all encodings in the xml/xsl
*> file are correct. even the settings of the webbrowser are correct.
*> 
*> the aim is to produce a proper text-output for latex.
*> 
*> is the text-ouput of cocoon broken?
*> 
*No. It is probably outputting UTF-8. I think you can choose the
*output encoding for the text serializer, check the default, and
*try to get the encoding you need (like ISO-8859-1).
*
*J.Pietschmann
*
*
*-
*Please check that your question  has not already been answered in the
*FAQ before posting. 
*
*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. 

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




Re: german umlaut!

2002-09-09 Thread Vaskin Kissoyan

Check TOMCAT / CATALINA / APP Server settings: for example:

CATALINA_OPTS=-Dfile.encoding=ISO8859_1

I'm not sure if this over-rides the settings, I would assume the xml 
file or more specific config should over-ride, but you might want to 
check what your App Server is configured /defaulted to.


J.Pietschmann wrote:
> Wolle wrote:
> 
>> as soon as i try to get an output as txt-file (e.g. on a web-browser or
>> saving the content in a file) the german umlaut produced by the ue/oe 
>> keys
>> are produced wrong (e.g. ue as A1/4). but all encodings in the xml/xsl
>> file are correct. even the settings of the webbrowser are correct.
>>
>> the aim is to produce a proper text-output for latex.
>>
>> is the text-ouput of cocoon broken?
>>
> No. It is probably outputting UTF-8. I think you can choose the
> output encoding for the text serializer, check the default, and
> try to get the encoding you need (like ISO-8859-1).
> 
> J.Pietschmann
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

-- 
Vaskin Kissoyan
Lokion Interactive
[EMAIL PROTECTED]
im (aol or yahoo): vkissoyan
voice:  301-588-0404
fax:  978-926-0515
http://www.lokion.com/


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: german umlaut!

2002-09-09 Thread J.Pietschmann

Wolle wrote:
> as soon as i try to get an output as txt-file (e.g. on a web-browser or
> saving the content in a file) the german umlaut produced by the ue/oe keys
> are produced wrong (e.g. ue as A1/4). but all encodings in the xml/xsl
> file are correct. even the settings of the webbrowser are correct.
> 
> the aim is to produce a proper text-output for latex.
> 
> is the text-ouput of cocoon broken?
> 
No. It is probably outputting UTF-8. I think you can choose the
output encoding for the text serializer, check the default, and
try to get the encoding you need (like ISO-8859-1).

J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: german umlaut!

2002-09-09 Thread Wolle

hi!

thanks for the many suggestions.


i tried the following solution:

*
*4. Use a proper encoding declaration which matches the actual
*encoding of the file. For example, most platforms setup for
*a german language environment use ISO-8859-1, and usually
*editors use this as the default encoding. Placing
*   
*at the beginning of each XML file (XSLT is XML too) allows you
*to use native encoded umlauts.


this works great producing pdf.

but i still have a problem:

as soon as i try to get an output as txt-file (e.g. on a web-browser or
saving the content in a file) the german umlaut produced by the ue/oe keys
are produced wrong (e.g. ue as A1/4). but all encodings in the xml/xsl
file are correct. even the settings of the webbrowser are correct.

the aim is to produce a proper text-output for latex.

is the text-ouput of cocoon broken?


bye

wolfgang weigel


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: german umlaut!

2002-09-09 Thread J.Pietschmann

Wolle wrote:
> has anybody a proper solution for involving german umlaute in a
> cocoon-framework?

You can read the XML spec for some hints, or check some other
publishing systems, like DocBook.

> i have some ideas like
> 
> 1. writing the umlauts in  unicode (so creating a pdf via fop will cause
> no problems)
> 2. writing them in tex-style like "u or "o an exchange them later in
> every xsl-file
> 3. using extra-markups like 

4. Use a proper encoding declaration which matches the actual
encoding of the file. For example, most platforms setup for
a german language environment use ISO-8859-1, and usually
editors use this as the default encoding. Placing
   
at the beginning of each XML file (XSLT is XML too) allows you
to use native encoded umlauts.
5. Use numerical character references, for example ” for ö.
You can place any unicode character in any XML file which has
an encoding which is a superset of ASCII.
The Unicode consortium has convenient tables for lookin up
characters online at
  http://www.unicode.org/charts/charindex.html
6. Get a DTD with entity definitions for some characters, like
a stripped down DocBook, or the HTML definitions (from
 http://www.w3.org/TR/html401/sgml/entities.html)
and use the aliases defined there, for example ö for ö.

J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: german umlaut!

2002-09-09 Thread Stefan Seifert

Just use a proper encoding for the XML file (i.e. UTF-8) and a UTF-8-able editor 
(under Windows i.e. XML Spy or JBuilder). Then you can just type the umlauts as any 
other chars in your document without problems.
The HTML Serializer by default will encode them when doing HTML output to iso encoding 
like ü etc.

Stefan

> -Original Message-
> From: Wolle [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 9:17 PM
> To: [EMAIL PROTECTED]
> Subject: german umlaut!
> 
> 
> hi cocooners!
> 
> has anybody a proper solution for involving german umlaute in a
> cocoon-framework?
> 
> i have some ideas like
> 
> 1. writing the umlauts in  unicode (so creating a pdf via fop 
> will cause
> no problems)
> 2. writing them in tex-style like "u or "o an exchange them later in
> every xsl-file
> 3. using extra-markups like 
> 
> i don't know. are there any solutions which had been tested already?
> 
> does anybody know a comfortable solution?
> 
> 
> 
> Auf bald
> 
> Wolfgang Weigel
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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