Re: Lexing with different charsets

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Lexing with different charsets
Date: 2004-04-14 08:36:22
Message-ID: Pine.LNX.4.44.0404141032140.4551-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 14 Apr 2004, Fabien COELHO wrote:

> printf("SELECT * FROM foo WHERE field1 = '%s'",
> latin1_to_database_encoding(...));

And how do you do this if the database encoding is latin2? You can not
convert latin1 to latin2.

The specification was written like this to handle things like latin1
strings in latin2 databases, or latin1 in a database that otherwise
only uses ascii.

The intention is good, but the specification is not perfect in any way.

--
/Dennis Björklund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeroen T. Vermeulen 2004-04-14 09:24:06 Re: 7.5 beta version
Previous Message Fabien COELHO 2004-04-14 08:28:50 Re: Lexing with different charsets