Re: pg jdbc driver

From: Dino Nardini <dino(at)rivendellsoftware(dot)com>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg jdbc driver
Date: 2004-08-09 10:21:14
Message-ID: 5.2.0.9.2.20040809071846.01b23738@pop.rivendellsoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello there,

Is there no way to force the JDBC driver to simply pass the data as
SQL-ASCII, or ignore the encoding altogether?

I tried to dump and restore the database with UNICODE encoding but get
errors on restore because there is quotes/double quotes within some of the
text data. Is there an encoding that will handle both french language
characters and quotes/double quotes?

Cheers... Dino

At 08:23 PM 08/08/2004 -0500, Kris Jurka wrote:

>On Sun, 8 Aug 2004, Dino Nardini wrote:
>
> > However, when I tested the same data with ColdFusion MX (built on a Java
> > platform), I ran into problems. The french characters were either
> throwing
> > "Invalid character..." errors, or displaying as garbage. I'm guessing
> that
> > CFMX was trying to convert the characters from SQL_ASCII to something else
> > (UTF-8?) somewhere between the database and the web page.
>
>The invalid character data errors are coming from the JDBC driver. When
>it connects to the database it asks the server to send it data using UTF-8
>regardless of the actual database encoding. The server cannot convert
>SQL_ASCII to UTF-8 and simply returns the SQL_ASCII data. The JDBC driver
>is expected UTF-8 data and chokes on this, so as you mentioned you will
>need to dump and restore into a database with a "real" encoding. This
>doesn't necessarily have to be unicode, but often makes the most sense.
>
>Kris Jurka

_____________________________________
Rivendell Software - Dynamic Web Solutions
http://www.rivendellsoftware.com
Tel 902.461.1697
Fax 902.461.3765

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2004-08-09 10:58:19 Re: postgresql and smp linux kernel
Previous Message zhicheng wang 2004-08-09 10:10:31 postgresql and smp linux kernel