pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unicode conversion issue
2+ messages / 2 participants
[nested] [flat]

* Unicode conversion issue
@ 2004-03-09 03:43 Al Cohen <amc79@no.junk.please.cornell.edu>
  2004-03-10 12:02 ` Re: Unicode conversion issue Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
  0 siblings, 1 reply; 2+ messages in thread

From: Al Cohen @ 2004-03-09 03:43 UTC (permalink / raw)
  To: 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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Unicode conversion issue
  2004-03-09 03:43 Unicode conversion issue Al Cohen <amc79@no.junk.please.cornell.edu>
@ 2004-03-10 12:02 ` Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Benjamin Riefenstahl @ 2004-03-10 12:02 UTC (permalink / raw)
  To: Al Cohen <amc79@no.junk.please.cornell.edu>; +Cc: pgsql-odbc

Hi Al,


Al Cohen <amc79@no.junk.please.cornell.edu> writes:
> 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?



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-03-10 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 03:43 Unicode conversion issue Al Cohen <amc79@no.junk.please.cornell.edu>
2004-03-10 12:02 ` Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>

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