Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3DFE32E0113 for ; Sat, 8 Dec 2007 16:58:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83486-03 for ; Sat, 8 Dec 2007 16:58:32 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 27A1E2E0110 for ; Sat, 8 Dec 2007 16:58:32 -0400 (AST) Received: from 122-57-33-135.jetstream.xtra.co.nz ([122.57.33.135] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J16kj-0007Fy-GE; Sun, 09 Dec 2007 09:58:25 +1300 Message-ID: <475B056F.2040401@opencloud.com> Date: Sun, 09 Dec 2007 09:58:23 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Kris Jurka CC: Tom Lane , sulfinu@gmail.com, pgsql-jdbc@postgresql.org Subject: Re: JDBC driver patch for non-ASCII users References: <200712071448.21411.sulfinu@gmail.com> <475A0286.706@opencloud.com> <2254.1197082315@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/68 X-Sequence-Number: 17923 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