Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 4B59FB5F42E for ; Tue, 7 Jun 2011 11:46:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 80401-02 for ; Tue, 7 Jun 2011 14:46:19 +0000 (UTC) X-Greylist: delayed 00:06:36.51952 by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 1B5CDB5F47A for ; Tue, 7 Jun 2011 11:46:17 -0300 (ADT) Received: (qmail 23597 invoked by uid 512); 7 Jun 2011 14:39:35 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 7 Jun 2011 14:39:35 -0000 Received: from unknown (HELO ?192.168.24.54?) (183.76.23.68) by sd.tpf.co.jp with SMTP; 7 Jun 2011 14:39:35 -0000 Message-ID: <4DEE3821.8010801@tpf.co.jp> Date: Tue, 07 Jun 2011 23:39:29 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: =?KOI8-R?Q?=F0=CF=D0=CF=D7_=ED=C9=C8=C1=C9=CC_=E0=D2=D8=C5=D7=C9=DE?= CC: "pgsql-odbc@postgresql.org" Subject: Re: Client encoding win866. References: <27EFDA7DA70C1E409421B31ECAA8C9D31DD83EDF90@topmail6> In-Reply-To: <27EFDA7DA70C1E409421B31ECAA8C9D31DD83EDF90@topmail6> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.657 tagged_above=-10 required=5 tests=BAYES_20=-0.001, DNS_FROM_RFC_BOGUSMX=1.668, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: * X-Archive-Number: 201106/2 X-Sequence-Number: 10660 (2011/06/07 20:04), Попов Михаил Юрьевич wrote: > Hi. > > Can you please tell me how to change client encoding in ODBC? > > I tried after a connection to execute SQLExecDirect (stmthp, "set > client_encoding to \" WIN866 \ ";", SQL_NTS) , but the encoding is still > a win1251. How do you confirm the client_encoding? regards, Hiroshi Inoue > PS: The database I have with encoding win866. Windows 7. PostgreSQL > 9.0.4. psqlodbc-09.00.0200. > > Mihail Popov.