Re: Find out encoding of data - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Find out encoding of data
Date
Msg-id D960CB61B694CF459DCFB4B0128514C2443A87@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Find out encoding of data  (joynes <joynes@hotmail.com>)
Responses Re: Find out encoding of data  (joynes <joynes@hotmail.com>)
List 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 by date:

Previous
From: "Jason L. Buberel"
Date:
Subject: Re: Strange discrepancy in query performance...
Next
From: Martijn van Oosterhout
Date:
Subject: Re: how to ignore invalid byte sequence for encoding without using sql_ascii?