pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: FAU <fau@email.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: UNICODE
Date: Wed, 10 Jul 2013 12:27:35 +0900
Message-ID: <51DCD4A7.4070404@tpf.co.jp> (raw)
In-Reply-To: <1373387342.977.12.camel@elitebook>
References: <1373387342.977.12.camel@elitebook>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (4+ messages)  latest in thread

Message-ID: <51DCD4A7.4070404@tpf.co.jp>
Permalink:  ../51DCD4A7.4070404@tpf.co.jp/
Also on:    postgresql.org/message-id/51DCD4A7.4070404@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, fau@email.com
  Subject: Re: UNICODE
  In-Reply-To: <51DCD4A7.4070404@tpf.co.jp>
  References: <1373387342.977.12.camel@elitebook> <51DCD4A7.4070404@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