From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Barry Lind <barry(at)xythos(dot)com> |
Cc: | Tony Grant <tony(at)animaproductions(dot)com>, Jani Averbach <jaa(at)cc(dot)jyu(dot)fi>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Re: A bug with pgsql 7.1/jdbc and non-ascii (8-bit) chars? |
Date: | 2001-05-04 19:44:23 |
Message-ID: | 27541.989005463@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
Barry Lind <barry(at)xythos(dot)com> writes:
> Now it is an easy change in the jdbc code to use LATIN1 when the server
> reports SQL_ASCII, but I really dislike hardcoding support that only
> works in english speaking countries and Western Europe.
What's wrong with that? It won't be any more broken for people who are
not really using LATIN1, and it will be considerably less broken for
those who are. Seems like a net win to me, even without making the
obvious point about where the majority of Postgres users are.
It probably would be a good idea to allow the backend to store an
indication of character set even when not compiled for MULTIBYTE,
but that's not the issue here. To me, the issue is whether JDBC
makes a reasonable effort not to munge data when presented with
a backend that claims to be using SQL_ASCII (which, let me remind
you, is the default setting). Converting high-bit-set characters
to '?' is almost certainly NOT what the user wants you to do.
Converting on the assumption of LATIN1 will make a lot of people
happy, and the people who aren't happy with it will certainly not
be happy with '?' conversion either.
> All this does
> is move the problem from being one that non-english countries have to
> being one where it is a non-english and non-western european problem
> (eg. Eastern Europe, Russia, etc.).
Nonsense. The non-Western-European folks see broken behavior now
anyway, unless they compile with MULTIBYTE and set an appropriate
encoding. How would this make their lives worse, or even different?
I'm merely suggesting that the default behavior could be made useful
to a larger set of people than it now is, without making things any
worse for those that it's not useful to.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2001-05-04 19:46:06 | Re: Packaging 7.1.1 |
Previous Message | Barry Lind | 2001-05-04 19:20:51 | Re: Re: A bug with pgsql 7.1/jdbc and non-ascii (8-bit) chars? |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-05-04 20:06:01 | Re: Bug-report (was: JDBC driver in pgsql 7.1 build problem) |
Previous Message | Barry Lind | 2001-05-04 19:20:51 | Re: Re: A bug with pgsql 7.1/jdbc and non-ascii (8-bit) chars? |