cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolle <wgwei...@cip.physik.uni-wuerzburg.de>
Subject Re: german umlaut!
Date Tue, 10 Sep 2002 17:03:35 GMT
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:

<map:serializer logger="sitemap.serializer.text" mime-type="text/text"
      name="text" src="org.apache.cocoon.serialization.TextSerializer">
     <encoding>iso-8859-1</encoding>
 </map:serializer>

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" <agallardo@agsoftware.dnsalias.com>
*To: <cocoon-users@xml.apache.org>
*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:
*
*<encoding>iso-8859-1</encoding>
*
**********************************************************************
*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:
*
*<?xml version="1.0" encoding="ISO-8859-1"?>
*
*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:
*>
*>
*> <map:serializer logger="sitemap.serializer.text" mime-type="text/text"
*>      name="text" src="org.apache.cocoon.serialization.TextSerializer">
*>  <encoding>iso-8859-1</encoding>
*> </map:serializer>
*>
*> 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.     <http://xml.apache.org/cocoon/faq/index.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/faq/index.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