From: Thomas Mueller <news-exp-dec05@tmueller.com>
To: pgsql-admin@postgresql.org
Subject: 8.1: import of 8.0 dump fails with UTF-8 error
Date: Sun, 11 Dec 2005 17:36:06 +0100
Message-ID: <dnhkhn$a2e$1@sea.gmane.org> (raw)
Hello,
I did a pg_dumpall of all my Pg 8.0.3 databases, removed 8.0, installed
8.1 and tried to import the dump. One table in one database failed with:
ERROR: invalid UTF-8 byte sequence detected near byte 0x83
CONTEXT: COPY pwd_name, line 22428, column name: "t.tonnement"
So I exported that database with 8.0 as Inserts to a text file and tried
to fix it using iconv, but that fails as well:
# iconv -f UTF-8 -t UTF-8 dump.sql > dump-fixed.sql
iconv: illegal input sequence at position 2588882
How can I fix the sql script to import it?
I have Debian Linux 3.1.
Thanks a lot,
Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: news-exp-dec05@tmueller.com
Subject: Re: 8.1: import of 8.0 dump fails with UTF-8 error
In-Reply-To: <dnhkhn$a2e$1@sea.gmane.org>
References: <dnhkhn$a2e$1@sea.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox