From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: LiuYan 刘研 <lovetide@21cn.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Chinese database name in URL, can I ?
Date: Tue, 23 Oct 2007 19:33:33 -0400
Message-ID: <5901.1193182413@sss.pgh.pa.us> (raw)
In-Reply-To: <471E8085.8030308@opencloud.com>
References: <13366356.post@talk.nabble.com>
<19162.1193155189@sss.pgh.pa.us>
<471E8085.8030308@opencloud.com>
Oliver Jowett <oliver@opencloud.com> writes:
> Tom Lane wrote:
>> 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.
> Has something changed here so that non-7-bit data in the startup packet
> will work?
The server just thinks those are 8-bit strings. I guess my
recommendation is that you should go ahead and send UTF8, and if the
user created the non-ASCII name that way, it'll work. (In practice I
think that means he'd have to issue the CREATE DATABASE or CREATE USER
command while logged into a database that uses UTF8 encoding.)
This whole business of per-database encodings is a mess, of course.
regards, tom lane
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: tgl@sss.pgh.pa.us, oliver@opencloud.com, lovetide@21cn.com
Subject: Re: Chinese database name in URL, can I ?
In-Reply-To: <5901.1193182413@sss.pgh.pa.us>
References: <13366356.post@talk.nabble.com> <19162.1193155189@sss.pgh.pa.us> <471E8085.8030308@opencloud.com> <5901.1193182413@sss.pgh.pa.us>
* 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