Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.
Дата
Msg-id 20061224000125.GC25135@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.  ("Alexander Farber" <alexander.farber@gmail.com>)
Ответы Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.  ("Alexander Farber" <alexander.farber@gmail.com>)
Список pgsql-general
Alexander Farber wrote:
> I started to prepare a test case and realized I had a bug.
> So convert() works for me, sorry for my previous message!

In any case, it's probably saner if you SET client_encoding at the start
of the session instead of using convert() everywhere.  The
server_encoding should be correctly set to Win1251 though!  (Using
SQL_ASCII, while not technically incorrect, is probably not doing you
any favor).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-general по дате отправления:

Предыдущее
От: "Alexander Farber"
Дата:
Сообщение: Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [ADMIN] OUTER JOIN IS SLOW