Skip site navigation (1) Skip section navigation (2)

Unicode conversion issue

From: Al Cohen <amc79(at)no(dot)junk(dot)please(dot)cornell(dot)edu>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Unicode conversion issue
Date: 2004-03-09 03:43:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
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.


pgsql-odbc by date

Next:From: dojie porneaDate: 2004-03-09 12:00:56
Subject: Re: Oracle Dev2000 using PostgreSQL as Database
Previous:From: Tom LaneDate: 2004-03-08 21:31:23
Subject: Re: compiling psqlodbc for unixodbc -- problems

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group