Re: Unicode conversion issue

From: Benjamin Riefenstahl <Benjamin(dot)Riefenstahl(at)epost(dot)de>
To: Al Cohen <amc79(at)no(dot)junk(dot)please(dot)cornell(dot)edu>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Unicode conversion issue
Date: 2004-03-10 12:02:56
Message-ID: m3smggj4en.fsf@seneca.benny.turtle-trading.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi Al,

Al Cohen <amc79(at)no(dot)junk(dot)please(dot)cornell(dot)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?

From the PostgreSQL side I use the statement

SET CLIENT_ENCODING TO 'UNICODE'

just after connection to tell it to give me UTF-8. You could use
other encodings, see the documentation.

From the other side I don't know that C# expects here, you'd have to
check its ODBC bindings. It may expect the local 8-bit codepage by
default.

benny

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Richard Huxton 2004-03-10 12:31:06 Re: Win98 client connection problem (was THANK YOU)
Previous Message Markus Wollny 2004-03-10 08:27:54 Re: Oracle Dev2000 using PostgreSQL as Database