Re: how do I load a 8.0.8 database with unicode encoding - Mailing list pgsql-admin

From Jeff Frost
Subject Re: how do I load a 8.0.8 database with unicode encoding
Date
Msg-id Pine.LNX.4.64.0611280807080.15313@discord.home.frostconsultingllc.com
Whole thread Raw
In response to how do I load a 8.0.8 database with unicode encoding into 8.1.4/utf8?  (Jessica Richard <rjessil@yahoo.com>)
List pgsql-admin
On Tue, 28 Nov 2006, Jessica Richard wrote:

> got an errro when loading a db from 8.0.8 with unicode to 8.1.4 server with UTF8 server:
> ERROR:  invalid byte sequence for encoding "UTF8": 0x92
>

See this info in the HISTORY file:

      * Some users are having problems loading UTF-8 data into 8.1.X. This
        is because previous versions allowed invalid UTF-8 byte sequences
        to be entered into the database, and this release properly accepts
        only valid UTF-8 sequences. One way to correct a dumpfile is to run
        the command "iconv -c -f UTF-8 -t UTF-8 -o cleanfile.sql
        dumpfile.sql". The -c option removes invalid character sequences. A
        diff of the two files will show the sequences that are invalid.
        "iconv" reads the entire input file into memory so it might be
        necessary to use split to break up the dump into multiple smaller
        files for processing.


--
Jeff Frost, Owner     <jeff@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem restoring with pg_dump
Next
From: Abu Mushayeed
Date:
Subject: FATAL message in log