Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uwl4K-00026N-IF for pgsql-odbc@arkaria.postgresql.org; Wed, 10 Jul 2013 03:27:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uwl4K-0003Vx-0M for pgsql-odbc@arkaria.postgresql.org; Wed, 10 Jul 2013 03:27:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uwl4J-0003Vq-Hv for pgsql-odbc@postgresql.org; Wed, 10 Jul 2013 03:27:51 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uwl4A-0006tb-K4 for pgsql-odbc@postgresql.org; Wed, 10 Jul 2013 03:27:51 +0000 Received: (qmail 4024 invoked by uid 512); 10 Jul 2013 03:27:38 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 10 Jul 2013 03:27:38 -0000 Message-ID: <51DCD4A7.4070404@tpf.co.jp> Date: Wed, 10 Jul 2013 12:27:35 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: FAU CC: pgsql-odbc@postgresql.org Subject: Re: UNICODE References: <1373387342.977.12.camel@elitebook> In-Reply-To: <1373387342.977.12.camel@elitebook> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi, (2013/07/10 1:29), FAU wrote: > Hello, > > I'm trying to understand how (unix)ODBC and psqlodbc work together > regarding UNICODE. > > So from what I understand is that ODBC UNICODE is/was inherently > UCS-2LE. Currently UTF-16LE or UTF-16BE according to the endianness of the machine. > Does the UNICODE driver version (which is psqlodbcw.so I > assume) expect/send UCS-2LE or (as I read somewhere) UTF-8, or does it > expect/send whatever the back-end database is setup to? The unicode driver expects UTF-16 not UTF-8. If you are to pass/accept UTF-8 string parameters, use the ANSI version of the driver and set client_encoding to 'UTF-8'. > Does the driver work the same way on Win and GNU/Linux regarding > UNICODE? Yes. regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc