Re: Accents bug ?

From: Denis Bucher <dbucher(at)niftycom(dot)com>
To: Knut Forkalsrud <kforkalsrud(at)cj(dot)com>
Cc: PGSQL-JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Accents bug ?
Date: 2001-10-24 15:51:56
Message-ID: 5.1.0.14.0.20011024172728.0248eec0@mail.niftycom.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

At 16:15 04.10.01 -0700, you wrote:

Hello !

Not reading the mailing-list very often I only answer now. I suppose I started
the thread about this bug...

>This is a follow-up to my post a few days ago about the JDBC driver
>chopping of strings at non-ASCII characters. First a brief summary of
>the problem:
>[.......]

You exactely have the same problem as I have.
And my base is also UNICODE...

>I guess this is some initialization queries the driver does on
>startup. Then to my query. I summarized the results in a table to
>make it easier to follow.
>
>Inserted The JDBC driver byte buffer JDBC string
>-------------------------------------------------------
>abcdefgh 61 62 63 64 65 66 67 68 abcdefgh
>abæøå 61 62 e6 f8 e5 ab
>ab² 61 62 b2 ab
>ß÷¥£ df f7 a5 a3
>
>The byte buffer seems to be in the ISO8859-1 character set and not
>UTF8 as the UNICODE database encoding expects. The error was probably
>introduced during the INSERT.

Well, are you sure ? With *all* tools, that can be psql or pgdump_all,
everything seems
right, look at an extract of a dump :
6 6 PPN Nigiri mixte t t
7 7 PNS Nigiri saké t t
8 8 PNT Nigiri maguro t t
9 9 PNM Nigiri saké maguro t t
43 43 PSM Petit Nigiri maguro t t
44 44 PSS Petit Nigiri saké t t

As you can see it *works* for a dump.

> I guess I should submit this as a bug
>to the maintainers of the psql program.

Are you sure the problem is in the INSERT ?

And let's admit you're right, isn't there a way to do something in the JDBC
driver ?
Or is there a way to correct the database ?

Denis

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2001-10-24 16:48:51 Re: [PATCHES] DatabaseMetadata patch
Previous Message tony 2001-10-24 14:01:22 Re: StarOffice question