Re: Find out encoding of data

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Find out encoding of data
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C2443A87@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Find out encoding of data  (joynes <joynes@hotmail.com>)
Ответы Re: Find out encoding of data  (joynes <joynes@hotmail.com>)
Список pgsql-general
joynes wrote:
> What I really want to see is the hexadecimal or octal value
> of the bytes of the retrieved data. Can postgres give me
> this somehow (without exporting tables to files and look at
> the files).

Maybe 'decode' can help you:

test=> SELECT decode('10EUR', 'escape');
     decode
----------------
 10\342\202\254
(1 row)

Yours,
Laurenz Albe

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

Предыдущее
От: "Jason L. Buberel"
Дата:
Сообщение: Re: Strange discrepancy in query performance...
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: how to ignore invalid byte sequence for encoding without using sql_ascii?