pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Emmanuel Guiton <emmanuel.guiton@intrinsec.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
Date: Thu, 11 Mar 2010 10:49:45 +1300
Message-ID: <4B9813F9.3060801@opencloud.com> (raw)
In-Reply-To: <4B979F69.5090707@intrinsec.com>
References: <4B977FFF.9030204@intrinsec.com>
	<4B978DBE.8090506@opencloud.com>
	<4B979F69.5090707@intrinsec.com>

Emmanuel Guiton wrote:

> Would there be a way to get the binary content of text field ?
> Maybe that could be the solution, performing the encoding conversion at
> the application level, then.

That's not simple, the conversion from network data to String is done
very early, well before the data gets anywhere near the application level.

You may have to run with a modified driver that you have patched to
understand encodings other than UTF-8.

-O



view thread (5+ messages)  latest in thread

Message-ID: <4B9813F9.3060801@opencloud.com>
Permalink:  ../4B9813F9.3060801@opencloud.com/
Also on:    postgresql.org/message-id/4B9813F9.3060801@opencloud.com

 · 

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 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, emmanuel.guiton@intrinsec.com
  Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
  In-Reply-To: <4B9813F9.3060801@opencloud.com>
  References: <4B977FFF.9030204@intrinsec.com> <4B978DBE.8090506@opencloud.com> <4B979F69.5090707@intrinsec.com> <4B9813F9.3060801@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