Re: Lexing with different charsets

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: Lexing with different charsets
Дата
Msg-id Pine.LNX.4.44.0404141032140.4551-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на Re: Lexing with different charsets  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список 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 по дате отправления:

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: Lexing with different charsets
Следующее
От: Christoph Haller
Дата:
Сообщение: Re: Prepared select