I don't know about Postgres, but with MySQL, you can set a parameter on the jdbc-driver in web.xml eg.:
<jdbc name="mydb"> <encoding>ISO-8859-15</encoding> <dburl>jdbc:mysql://<server>/<db> </jdbc> > -----Oorspronkelijk bericht----- > Van: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] > Verzonden: donderdag 29 augustus 2002 10:45 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: How to encode ISO-8859-1 characters into the Database? > > > 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é" > > Please, somebody know how to resolve this problem. I used at the > beginning of > the XSP pages the string: > > <?xml version="1.0" encoding="ISO-8859-1"?> > > What I am doing wrong? > > Regards, > > Antonio Gallardo > > El Jueves, 29 de Agosto de 2002 01:57, Antonio Gallardo Rivera escribió: > > I am using PostgreSQL 7.2.1 > > If I store a string value, like "Olé" in the Database without > using Cocoon. > > I can get it back. Without any problem. It is stored correctly. But, In > > Cocoon 2.03 (Tomcat 4.1.9) > > > > 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? > > > > Regards, > > > > Antonio Gallardo > > > > --------------------------------------------------------------------- > > 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]> > > --------------------------------------------------------------------- > 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]> > > --------------------------------------------------------------------- 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]>