pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: sulfinu@gmail.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver patch for non-ASCII users
Date: Sun, 09 Dec 2007 09:58:23 +1300
Message-ID: <475B056F.2040401@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0712072303540.21112@leary.csoft.net>
References: <200712071448.21411.sulfinu@gmail.com>
	<475A0286.706@opencloud.com>
	<2254.1197082315@sss.pgh.pa.us>
	<Pine.BSO.4.64.0712072303540.21112@leary.csoft.net>

Kris Jurka wrote:

> For the record, I'm in favor of changing our use of initial setup 
> encoding from US-ASCII to UTF-8.  While it doesn't solve the root of 
> the problem, it does allow people to use non-ascii user and database 
> names if they set them up appropriately and doesn't seem to harm 
> anything.

That does seem like the simplest approach and should cover all possible 
usernames (if you can't represent it in UTF-8 you can't get it into a 
String, anyway), if not all possible encodings.

> The original patch's suggested use of the client's 
> environment encoding seems random to me.

Agreed. I don't like the idea of "configure the server to use UTF-8 like 
this.. except if you have one of these encodings as your JVM default in 
which case you need to do something else like this.. and maybe how your 
cluster needs to be configured will change if you change JVM versions or 
environment or driver version".

-O



view thread (17+ messages)  latest in thread

Message-ID: <475B056F.2040401@opencloud.com>
Permalink:  ../475B056F.2040401@opencloud.com/
Also on:    postgresql.org/message-id/475B056F.2040401@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, books@ejurka.com, tgl@sss.pgh.pa.us, sulfinu@gmail.com
  Subject: Re: JDBC driver patch for non-ASCII users
  In-Reply-To: <475B056F.2040401@opencloud.com>
  References: <200712071448.21411.sulfinu@gmail.com> <475A0286.706@opencloud.com> <2254.1197082315@sss.pgh.pa.us> <Pine.BSO.4.64.0712072303540.21112@leary.csoft.net> <475B056F.2040401@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