pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George Koras <gkoras@cres.gr>
To: Peter Mount <petermount@maidstone.gov.uk>
Cc: fubjj@flashmail.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: How to change the encoding inside the JDBC interface
Date: Tue, 28 Nov 2000 13:54:12 +0200
Message-ID: <3A239CE3.40AC0440@cres.gr> (raw)
References: <1B3D5E532D18D311861A00600865478CF1B5D3@exchange1.nt.maidstone.gov.uk>

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.

Attachments:

gkoras.vcf (text/x-vcard, 282B) download begin:vcard n:Koras;George x-mozilla-html:FALSE org:Center for Renewable Energy Sources;Division for Energy Information Systems, Dissemination, and Training adr:;;19th km, Marathonos ave.;Pikermi;;GR-15669;Greece version:2.1 email;internet:gkoras@cres.gr fn:George Koras end:vcard

view thread (7+ messages)

Message-ID: <3A239CE3.40AC0440@cres.gr>
Permalink:  ../3A239CE3.40AC0440@cres.gr/
Also on:    postgresql.org/message-id/3A239CE3.40AC0440@cres.gr

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gkoras@cres.gr, petermount@maidstone.gov.uk, fubjj@flashmail.com
  Subject: Re: How to change the encoding inside the JDBC interface
  In-Reply-To: <3A239CE3.40AC0440@cres.gr>

* 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