Skip site navigation (1) Skip section navigation (2)

Re: Encoding issues

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Encoding issues
Date: 2008-08-01 23:46:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
On Sat, 2008-08-02 at 11:18 +1200, Oliver Jowett wrote:
> Right. Use 7-bit usernames, passwords, and database names for this 
> reason. The handshake protocol does not allow us to get it right if you 
> use non-7-bit data here.

But when someone _does_ use non-ASCII database names, etc., shouldn't we
produce some kind of useful error, or at least blindly pass the bytes on
to the server?

Changing those characters into "?"s does not seem like the right
solution. That gives us the worst of both worlds: we don't get a useful
error message, yet it's impossible to connect when, e.g., the database
name contains non-ASCII characters.

	Jeff Davis

In response to


pgsql-jdbc by date

Next:From: Oliver JowettDate: 2008-08-02 03:24:00
Subject: Re: Encoding issues
Previous:From: Oliver JowettDate: 2008-08-01 23:18:45
Subject: Re: Encoding issues

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group