pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Al Cohen <amc79@no.junk.please.cornell.edu>
To: pgsql-odbc@postgresql.org
Subject: Unicode conversion issue
Date: Mon, 08 Mar 2004 22:43:33 -0500
Message-ID: <T4CcnQ5iFM33oNDdRWPC-w@speakeasy.net> (raw)

We have a PostgreSQL database in Unicode that I'm trying to read into a 
C# application.  In theory, the easiest thing to do would be to use the 
Beta ODBC Unicode driver or one of the .NET data providers for 
PostgreSQL, but these seem to be fairly immature.

So, I'm hoping to use the standard ODBC driver, which seems quite 
mature, to read and write to a Unicode database.  Can this be done by 
properly decoding and encoding?

For starters, I'm wondering if someone can help me to understand just 
what the standard psqlODBC is returning to my C# application when I read 
a unicode string?  The ASCII characters (<128)  are returning as ASCII 
characters, but the higher characters are turning into 4 unicode 
characters, or 8 bytes.  My initial thought was that this was UTF-8, but 
UTF-8 is maximum 6 bytes.



view thread (2+ messages)  latest in thread

Message-ID: <T4CcnQ5iFM33oNDdRWPC-w@speakeasy.net>
Permalink:  ../T4CcnQ5iFM33oNDdRWPC-w@speakeasy.net/
Also on:    postgresql.org/message-id/T4CcnQ5iFM33oNDdRWPC-w@speakeasy.net

 · 

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: amc79@no.junk.please.cornell.edu
  Subject: Re: Unicode conversion issue
  In-Reply-To: <T4CcnQ5iFM33oNDdRWPC-w@speakeasy.net>
  References: <T4CcnQ5iFM33oNDdRWPC-w@speakeasy.net>

* 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