how to ignore invalid byte sequence for encoding without using sql_ascii?

From: "detrox(at)gmail(dot)com" <detrox(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to ignore invalid byte sequence for encoding without using sql_ascii?
Date: 2007-09-27 09:28:27
Message-ID: 1190885307.501885.243420@w3g2000hsg.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am now importing the dump file of wikipedia into my postgresql using
maintains/importDump.php. It fails on 'ERROR: invalid byte sequence
for encoding UTF-8'. Is there any way to let pgsql just ignore the
invalid characters ( i mean that drop the invalid ones ), that the
script will keep going without die on this error.

I know that i can using sql_ascii or even modify the importDump.php,
but those are not so easy to do as i thought.

thanks for help

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Childs 2007-09-27 11:29:13 Re: Performance Issues
Previous Message Alban Hertroys 2007-09-27 08:32:53 Re: datestyle question