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



On Fri, 7 Dec 2007, Tom Lane wrote:

> Right now it's all pretty broken, and I really question whether it's
> sane to put workarounds like this proposed patch into client-side
> drivers.  If you aren't consistent about the encoding you use for
> non-ASCII usernames, you're going to lose somewhere along the line
> anyway.  So why not just recommend that people do that?
>

For the record, I'm in favor of changing our use of initial setup encoding 
from SQL-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.  The original 
patch's suggested use of the client's environment encoding seems random to 
me.  If decide on UTF-8, we'll at least be able to tell people how to make 
it work when they cannot control the environment their clients operate in.

Kris Jurka



view thread (17+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0712072303540.21112@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0712072303540.21112@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0712072303540.21112@leary.csoft.net

 · 

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: books@ejurka.com, tgl@sss.pgh.pa.us, oliver@opencloud.com, sulfinu@gmail.com
  Subject: Re: JDBC driver patch for non-ASCII users
  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>

* 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