From: Kris Jurka <books@ejurka.com>
To: Dario V. Fassi <software@sistemat.com.ar>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Very strange Error in Updates
Date: Thu, 15 Jul 2004 01:02:08 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0407150056540.20585@leary.csoft.net> (raw)
In-Reply-To: <40F61DED.9090609@sistemat.com.ar>
References: <40F6172D.10301@sistemat.com.ar>
<Pine.BSO.4.56.0407150039290.12845@leary.csoft.net>
<40F61DED.9090609@sistemat.com.ar>
On Thu, 15 Jul 2004, Dario V. Fassi wrote:
> Kris Jurka wrote:
>
> Kris, the value of field is originate from a DB2 v6.1 with encoding
> IBM-850 (Ascii PC), I don't believe that the value are unicode.
I mean that java and the jdbc driver internally represent strings with
unicode. If any of the data has the high bit set (ASCII values > 127)
then the jdbc driver will send it as two bytes or more because it uses
UTF-8. Normally the server will convert it from UTF-8 to the database's
encoding, but if the database is SQL_ASCII it doesn't know how to convert
it and must keep it as two bytes. You have not told us what your
database's encoding is yet.
Kris Jurka
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: books@ejurka.com, software@sistemat.com.ar
Subject: Re: Very strange Error in Updates
In-Reply-To: <Pine.BSO.4.56.0407150056540.20585@leary.csoft.net>
References: <40F6172D.10301@sistemat.com.ar> <Pine.BSO.4.56.0407150039290.12845@leary.csoft.net> <40F61DED.9090609@sistemat.com.ar> <Pine.BSO.4.56.0407150056540.20585@leary.csoft.net>
* 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