Re: finding bogus UTF-8

From: dennis jenkins <dennis(dot)jenkins(dot)75(at)gmail(dot)com>
To: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: finding bogus UTF-8
Date: 2011-02-10 22:45:16
Message-ID: AANLkTimRY8d+Ka0QzhwUYmZaKrbke7vQ0SPZwMFB_ZSD@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> If you are interested, I can email to you the C and Perl source.
>
> It runs like this:
>
> # time pg_restore /db-dumps/some_ascii_pgdump.bin | ./ascii-tester |
> ./bad-ascii-report.pl > unclean-ascii.rpt

http://www.ecoligames.com/~djenkins/pgsql/

Disclaimer: I offer NO warranty. Use at your own risk. Code does
minimal error checking (its a hack / tool for manual use, not reliable
production use).

C code compiles cleanly with gcc. Perl code uses no libraries (just a
STDIN -> STDOUT processor). This code should run damn near anywhere.

The code will stay on my web server until I forget about it and re-org
stuff in a few weeks, so grab it while you can.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2011-02-10 22:50:14 Re: Schema version control
Previous Message Rob Sargent 2011-02-10 22:26:49 Re: Schema version control