| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера