From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
---|---|
To: | Barry Lind <blind(at)xythos(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: ArrayIndexOutOfBoundsException in Encoding.decodeUTF8() |
Date: | 2003-01-08 20:48:23 |
Message-ID: | 3E1C8E97.8090601@selectacast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
Barry Lind wrote:
> Joseph,
>
> The problem is that your database claims to be ASCII, but you are
> storing non-ascii data in it.
>
> As of 7.3 the jdbc driver has the server convert from the database
> character set to UTF8. Then send the data to the driver in UTF8 and the
> driver then decodes the UTF8 to java unicode.
I see this in my postgres log when I connect via jdbc:
LOG: query: set datestyle to 'ISO'; select version(), case when pg_encoding_to_char(1) =
'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end;
LOG: query: set client_encoding = 'UNICODE'; show autocommit
So if client_encoding is unicode why is the driver trying to convert from UTF8?
From | Date | Subject | |
---|---|---|---|
Next Message | Hervé Piedvache | 2003-01-08 21:02:09 | Re: Get PostgreSQL work with Kylix 3 ? |
Previous Message | Joseph Shraibman | 2003-01-08 19:55:07 | Re: shared buffers in config |
From | Date | Subject | |
---|---|---|---|
Next Message | Felipe Schnack | 2003-01-08 21:11:46 | Re: synchronized code |
Previous Message | Michael Paesold | 2003-01-08 20:16:23 | Re: synchronized code |