From: Oliver Jowett <oliver@opencloud.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: LiuYan 刘研 <lovetide@21cn.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Chinese database name in URL, can I ?
Date: Wed, 24 Oct 2007 12:15:17 +1300
Message-ID: <471E8085.8030308@opencloud.com> (raw)
In-Reply-To: <19162.1193155189@sss.pgh.pa.us>
References: <13366356.post@talk.nabble.com>
<19162.1193155189@sss.pgh.pa.us>
Tom Lane wrote:
> =?UTF-8?Q?LiuYan_=E5=88=98=E7=A0=94?= <lovetide@21cn.com> writes:
>> I've also tried add '&charSet=GBK' in the jdbcURL, and got the same result.
>
> At a guess, the name of the database will have to be in UTF8. I doubt
> that JDBC will think it should do any character set conversion on it.
IIRC the last time I raised the issue of the encoding used for things
like database names & usernames in the startup packet the answer boiled
down to "don't use anything but 7-bit ASCII". So the driver sends those
strings as 7-bit ASCII (i.e. String.getBytes("US-ASCII")). If you've got
a database name or username that can't be represented using only 7-bit
ASCII, you're out of luck.
Has something changed here so that non-7-bit data in the startup packet
will work?
-O
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, tgl@sss.pgh.pa.us, lovetide@21cn.com
Subject: Re: Chinese database name in URL, can I ?
In-Reply-To: <471E8085.8030308@opencloud.com>
References: <13366356.post@talk.nabble.com> <19162.1193155189@sss.pgh.pa.us> <471E8085.8030308@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