From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Oliver Jowett <oliver(at)opencloud(dot)com>, sulfinu(at)gmail(dot)com, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: JDBC driver patch for non-ASCII users |
Date: | 2007-12-08 04:09:45 |
Message-ID: | Pine.BSO.4.64.0712072303540.21112@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2007-12-08 04:16:54 | Re: JDBC driver patch for non-ASCII users |
Previous Message | Tom Lane | 2007-12-08 02:51:55 | Re: JDBC driver patch for non-ASCII users |