Re: SET client_encoding = 'UTF8'

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: SET client_encoding = 'UTF8'
Дата
Msg-id 482FEAC5.7010904@opencloud.com
обсуждение исходный текст
Ответ на Re: SET client_encoding = 'UTF8'  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
Tom Lane wrote:
> Daniel Migowski <dmigowski@ikoffice.de> writes:
>> The command
>>     SET client_encoding = 'UTF8'
>> throws an exception in the driver, because the driver expects UNICODE.
>
> Er, what driver exactly?  Perhaps you need a more up-to-date version
> of said driver?  'UTF8' has been our standard spelling of this
> encoding's name for quite some time now.

The driver requests client_encoding = UNICODE in the startup packet, and
expects client_encoding to stay as UNICODE throughout.

If client code goes off and manually sets it to UTF8 then the JDBC
driver complains, because it doesn't know that UNICODE is equivalent to
UTF8.

-O


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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: SET client_encoding = 'UTF8'
Следующее
От: Daniel Migowski
Дата:
Сообщение: Re: SET client_encoding = 'UTF8'