Re: How to convert HEX to ASCII?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Marti Raudsepp <marti(at)juffo(dot)org>
Cc: Torsten Zuehlsdorff <foo(at)meisterderspiele(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to convert HEX to ASCII?
Date: 2011-12-02 16:58:59
Message-ID: CAHyXU0yHgsoXJYar94vgLBvBa+zenZxJupZCMb8VSHcuLQFSag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Dec 2, 2011 at 10:42 AM, Marti Raudsepp <marti(at)juffo(dot)org> wrote:
> Sorry, but AFAICT this makes a mess of encodings and only works by
> pure luck. The server thinks it's sending the client LATIN1 text, but
> it's actually UTF8-encoded and the last decoding step is done by your
> terminal.

yup -- your're right -- what a coincidence! I still prefer the 1
liner sql variant vs plpgsql loop though. nicely done.

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2011-12-02 17:15:28 Re: How to convert HEX to ASCII?
Previous Message Marti Raudsepp 2011-12-02 16:42:01 Re: How to convert HEX to ASCII?