Re: Lexing with different charsets - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject Re: Lexing with different charsets
Date
Msg-id Pine.LNX.4.44.0404141032140.4551-100000@zigo.dhs.org
Whole thread Raw
In response to Re: Lexing with different charsets  (Fabien COELHO <coelho@cri.ensmp.fr>)
List 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



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Lexing with different charsets
Next
From: Christoph Haller
Date:
Subject: Re: Prepared select