Re: psql weird behaviour with charset encodings

Поиск
Список
Период
Сортировка
От 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  (hernan gonzalez <hgonzalez@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: hernan gonzalez
Дата:
Сообщение: Re: psql weird behaviour with charset encodings
Следующее
От: hernan gonzalez
Дата:
Сообщение: Re: psql weird behaviour with charset encodings