| От | Tom Lane |
|---|---|
| Тема | Re: psql weird behaviour with charset encodings |
| Дата | |
| Msg-id | 2117.1273270375@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: psql weird behaviour with charset encodings (hernan gonzalez <hgonzalez@gmail.com>) |
| Ответы |
Re: psql weird behaviour with charset encodings
|
| Список | pgsql-general |
hernan gonzalez <hgonzalez@gmail.com> writes:
> But I actually dont want that. I want psql to not try any charset
> conversion, just give me the raw text as is stored in the db.
Well, that's what it's doing (given the default setting with
client_encoding equal to server_encoding), and then xterm is
misdisplaying the text because xterm thinks it's utf8. I'm
not very clear on why the \x case seems to display correctly
anyway, but you really need the terminal's encoding to agree
with client_encoding in order to get non-ASCII characters to
work well.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера