Re: finding bogus UTF-8 - Mailing list pgsql-general

From Vick Khera
Subject Re: finding bogus UTF-8
Date
Msg-id AANLkTinYG6GZwbqLagqVRtX3phGGJ0m9e-nJOwyeRiJA@mail.gmail.com
Whole thread Raw
In response to Re: finding bogus UTF-8  (Geoffrey Myers <lists@serioustechnology.com>)
Responses Re: finding bogus UTF-8  (Geoffrey Myers <lists@serioustechnology.com>)
List pgsql-general
On Tue, Feb 15, 2011 at 11:09 AM, Geoffrey Myers
<lists@serioustechnology.com> wrote:
> comments would be appreciated.
>

If all you're doing is filtering stdin to stdout and deleting a range
of characters, it seems that tr would be a faster tool:

cat foo.txt | tr -d '\000-\008\013-\037\177-\377' > foo-cleaned.txt

pgsql-general by date:

Previous
From: Marko Kreen
Date:
Subject: Re: finding bogus UTF-8
Next
From: David Kerr
Date:
Subject: Re: pg_dump: schema with OID 58698 does not exist