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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.
Date: 2006-12-24 00:01:25
Message-ID: 20061224000125.GC25135@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-12-24 01:55:55 Re: [GENERAL] OUTER JOIN IS SLOW
Previous Message Alexander Farber 2006-12-23 23:52:53 Re: convert(... using windows_1251_to_utf8) - works on cli, but not in a c prog.