Re: Unicode conversion issue - Mailing list pgsql-odbc

From Benjamin Riefenstahl
Subject Re: Unicode conversion issue
Date
Msg-id m3smggj4en.fsf@seneca.benny.turtle-trading.net
Whole thread Raw
In response to Unicode conversion issue  (Al Cohen <amc79@no.junk.please.cornell.edu>)
List 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?

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


pgsql-odbc by date:

Previous
From: "Markus Wollny"
Date:
Subject: Re: Oracle Dev2000 using PostgreSQL as Database
Next
From: Richard Huxton
Date:
Subject: Re: Win98 client connection problem (was THANK YOU)