Re: user names & non-ASCII

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: user names & non-ASCII
Дата
Msg-id 1330344173.7111.23.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на user names & non-ASCII  ("Pavel Holec" <holec@email.cz>)
Список pgsql-docs
On tor, 2011-12-15 at 01:22 +0100, Pavel Holec wrote:
> I Have PostgreSQL server 8.4.9 on Linux, database utf-8 and Client app on Windows (VC++ and libpq.dll).
> I need to use user account with non-ASCII and that's my problem. SET CLIENT_ENCODING TO 'WIN1250' after PQconnectdb
istoo late because connection fails. I need set encoding with PQconnectdb() but options="client_encoding=WIN1250"
doesn'twork. 

In the connection request, you effectively need to specify the user name
(and database name) as bytes in the encoding that you created them in.
I don't think this is documented in an obvious way.



В списке pgsql-docs по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: HTML Page titles in HTML version?
Следующее
От: "Holec, JPH Software"
Дата:
Сообщение: Invalid sequence for encoding UTF8 0xe86974