From: Shoaib Mir <shoaibmir@gmail.com>
To: Mike Blackwell <maiku41@sbcglobal.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Character encoding conversion
Date: Sat, 9 Feb 2008 19:39:16 +0500
Message-ID: <bf54be870802090639l337226c6lef896837da71718e@mail.gmail.com> (raw)
In-Reply-To: <47ADB8AA.6070305@sbcglobal.net>
References: <47ADB8AA.6070305@sbcglobal.net>
On Feb 9, 2008 7:28 PM, Mike Blackwell <maiku41@sbcglobal.net> wrote:
> I have a database which was originally created with LATIN1 encoding.
> I'd like to move it to UTF8. The data will load ok (COPY) but I am
> getting 'invalid byte sequence for encoding..." messages when accessing
> the data.
>
> Is there a way to automatically convert the offending characters, or to
> easily locate them in a pg_dump file so they can be converted by hand?
>
>
Try using 'iconv' for your dump file and convert it all to UTF8 first before
restoring to a UTF8 database.
--
Shoaib Mir
Fujitsu Australia Software Technology
shoaibm[@]fast.fujitsu.com.au
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: shoaibmir@gmail.com, maiku41@sbcglobal.net
Subject: Re: Character encoding conversion
In-Reply-To: <bf54be870802090639l337226c6lef896837da71718e@mail.gmail.com>
* 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