Character encoding conversion

From: Mike Blackwell <maiku41(at)sbcglobal(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Character encoding conversion
Date: 2008-02-09 14:28:58
Message-ID: 47ADB8AA.6070305@sbcglobal.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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?

Mike

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Shoaib Mir 2008-02-09 14:39:16 Re: Character encoding conversion
Previous Message Mikel Lindsaar 2008-02-09 11:45:40 Postgres Backup and Restore