pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank A. U. <fau@email.com>
To: pgsql-odbc@postgresql.org
Subject: Re: UNICODE again
Date: Sat, 27 Jul 2013 10:34:03 -0600
Message-ID: <1374942843.755.14.camel@elitebook.localdomain> (raw)
In-Reply-To: <51F3942A.2050607@tpf.co.jp>
References: <1374889800.772.27.camel@elitebook.localdomain>
	<51F3942A.2050607@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On Sat, 2013-07-27 at 18:34 +0900, Hiroshi Inoue wrote:
> (2013/07/27 10:50), Frank A. U. wrote:
> > So lets clarify this again for me.
> 
> How do you use odbc?
> Via applications like MS Access or MS Excel ...?
> Or via middlewares like ADO or .NET ...?
> Or via your applcations which call ODBC APIs directly?
Via the application.  I'm trying to write a binding for it.

I'm new to ODBC.  The confusing thing about it is that, as far as I
understand, the wide API should consume UCS-2 (by standard) but some
drivers seem to use UTF-16 there.  Similar situation for the ANSI API
which may be even worse if we consider the legacy code pages and UTF-8
-- how does an application know what it gets there?  Well and there's
apparently the possibility that translations happen in the DM.

Maybe this is not the right place to discuss those things but I use
psqlodbc for my testing.

> 
> regards,
> Hiroshi Inoue
> 
> > When I use the wide ODBC API, UTF-16 chars are exchanged with the
> > application and not UCS-2 chars?
> >
> > When I use the ANSI ODBC API what is the expected encoding in this case?
> >
> > Thanks,
> > Frank
> 
> 
> 




-- 
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 (3+ messages)

Message-ID: <1374942843.755.14.camel@elitebook.localdomain>
Permalink:  ../1374942843.755.14.camel@elitebook.localdomain/
Also on:    postgresql.org/message-id/1374942843.755.14.camel@elitebook.localdomain

 · 

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: fau@email.com
  Subject: Re: UNICODE again
  In-Reply-To: <1374942843.755.14.camel@elitebook.localdomain>
  References: <1374889800.772.27.camel@elitebook.localdomain> <51F3942A.2050607@tpf.co.jp> <1374942843.755.14.camel@elitebook.localdomain>

* 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