Re: How to change the encoding inside the JDBC interface - Mailing list pgsql-interfaces

From George Koras
Subject Re: How to change the encoding inside the JDBC interface
Date
Msg-id 3A239CE3.40AC0440@cres.gr
Whole thread Raw
In response to RE: How to change the encoding inside the JDBC inter face  (Peter Mount <petermount@maidstone.gov.uk>)
List pgsql-interfaces
Peter Mount wrote:

> The encoding patch added a new method to Connection called getEncoding().
> The sensitive parts of Connection then replace getBytes() with
> getBytes(getEncoding()), with a new encoding argument to PG_Stream's
> ReceiveString() method.
>
> However, the encoding is only changed with the charSet connection property
> (allows you to set the encoding on a per connection basis). Now I feel this
> should default (if charSet is absent) to be the file.encoding property. What
> do you think?

It seems to be the most elegant way to do it. And yes,  a connection-specific
encoding could be useful.


Attachment

pgsql-interfaces by date:

Previous
From: Peter Mount
Date:
Subject: RE: How to change the encoding inside the JDBC inter face
Next
From: "Bryan Bateman"
Date:
Subject: pgAdmin problems