pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Попов Михаил Юрьевич <Mihail.Popov@galaktika.by>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Client encoding win866.
Date: Thu, 09 Jun 2011 18:29:41 +0900
Message-ID: <4DF09285.90208@tpf.co.jp> (raw)
In-Reply-To: <27EFDA7DA70C1E409421B31ECAA8C9D31DD83EE285@topmail6>
References: <27EFDA7DA70C1E409421B31ECAA8C9D31DD83EDF90@topmail6>
	<4DEE3821.8010801@tpf.co.jp>
	<27EFDA7DA70C1E409421B31ECAA8C9D31DD83EE285@topmail6>

(2011/06/08 20:52), Попов Михаил Юрьевич 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?
>
> Few details...
> I create connection and before all the bindings of parameters and columns, and before SQLPrepare I do SQLExecDirect(stmthp,"set client_encoding to \"WIN866\";",SQL_NTS);
> Then after SQLPrepare, SQLBindParameter and after SQLExecute I get an error:
> Error code 22P05 with message ERROR: character 0x83 of encoding "WIN1251" has no equivalent in "MULE_INTERNAL";

Please confirm the database encoding.
Isn't it "WIN1251" not "WIN866"?

regards,
Hiroshi Inoue



view thread (7+ messages)  latest in thread

Message-ID: <4DF09285.90208@tpf.co.jp>
Permalink:  ../4DF09285.90208@tpf.co.jp/
Also on:    postgresql.org/message-id/4DF09285.90208@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, Mihail.Popov@galaktika.by
  Subject: Re: Client encoding win866.
  In-Reply-To: <4DF09285.90208@tpf.co.jp>
  References: <27EFDA7DA70C1E409421B31ECAA8C9D31DD83EDF90@topmail6> <4DEE3821.8010801@tpf.co.jp> <27EFDA7DA70C1E409421B31ECAA8C9D31DD83EE285@topmail6> <4DF09285.90208@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox