From: Oliver Jowett <oliver@opencloud.com>
To: alexandre.aufrere@inet6.fr
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with charsets, investigated...
Date: Sun, 08 Aug 2004 23:57:02 +1200
Message-ID: <4116150E.2080302@opencloud.com> (raw)
In-Reply-To: <20040808081854.793B0400E5@smtp.ies.inet6.fr>
References: <20040806144335.933C4400E5@smtp.ies.inet6.fr>
<411400E6.8060704@opencloud.com>
<20040807084125.A6091400E5@smtp.ies.inet6.fr>
<41158FFB.9060101@opencloud.com>
<20040808081854.793B0400E5@smtp.ies.inet6.fr>
Alexandre Aufrere wrote:
>>Can you dump out the *characters* of the problem Strings you get from
>>the driver, one character at a time, and see what numeric values you're
>>getting and whether they are the right UTF-16 values you expect? i.e.
>>
>> for (int i = 0; i < str.length(); ++i) {
>> System.out.println(" offset " + i + " value " + (int)str.charAt(i));
>> }
>>
>>Can you provide a pg_dump (LATIN1 encoding I assume) plus sample
>>testcase that shows off the problem?
>
>
> well, i'll investigate more tomorrow, at work, and try to set up a simple
> test program to try to understand deeper what's going on.
> currently, we see the problem by doing a debug output (simply a
> System.out) from Enhydra's DODS (which is the relational-object layer).
>>From what i've seen in DODS (maybe, though, i didn't dig enough), DODS
> does not manipulate Strings coming from the JDBC driver when they are of
> type VARCHAR, therefore it shouldn't be the source of the problem.
> about the charAt thing, it is as well not correct, i tried...
Can you show me the charAt output for some sample data that shows the
problem? (and the corresponding string as it's stored in the database)
-O
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, alexandre.aufrere@inet6.fr
Subject: Re: Problems with charsets, investigated...
In-Reply-To: <4116150E.2080302@opencloud.com>
References: <20040806144335.933C4400E5@smtp.ies.inet6.fr> <411400E6.8060704@opencloud.com> <20040807084125.A6091400E5@smtp.ies.inet6.fr> <41158FFB.9060101@opencloud.com> <20040808081854.793B0400E5@smtp.ies.inet6.fr> <4116150E.2080302@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox