Re: Unicode conversion issue

Поиск
Список
Период
Сортировка
Искать
От
Benjamin Riefenstahl
Тема
Re: Unicode conversion issue
Дата
Msg-id
m3smggj4en.fsf@seneca.benny.turtle-trading.net
Ответ на
Список
Дерево обсуждения
Unicode conversion issue Al Cohen <amc79@no.junk.please.cornell.edu>
Re: Unicode conversion issue Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
Hi Al,


Al Cohen  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 по дате отправления
От: Markus Wollny
Дата:
От: Richard Huxton
Дата:
FAQ