Re: BUG #4890: Allow insert character has no equivalent in "LATIN2"
В списке pgsql-bugs по дате отправления:
| От | Craig Ringer |
|---|---|
| Тема | Re: BUG #4890: Allow insert character has no equivalent in "LATIN2" |
| Дата | |
| Msg-id | 1246273489.11346.11.camel@ayaki обсуждение исходный текст |
| Ответ на | BUG #4890: Allow insert character has no equivalent in "LATIN2" ("saint" <saint@akpa.pl>) |
| Список | pgsql-bugs |
On Sat, 2009-06-27 at 19:20 +0000, saint wrote:
> set client_encoding to 'WIN1250';
> insert into public.test(col) values('â°');
You're lying to the server about the client encoding in one or both
cases. I can't know which without knowing what program you're talking to
the server with and how it's set up.
'SET client_encoding' tells the server what encoding to expect incoming
data in. It doesn't change what encoding the client sends that data in.
If your client has a different default encoding to that of the server,
you can inform the server that the client will be sending differently
encoded data.
In other words, you can't use 'SET client_encoding' to change what
encoding the client uses, only how the server interprets the bytes it
gets from the client.
--
Craig Ringer
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера