Re: Invalid byte sequence for encoding "UTF8"

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Neil Saunders <n(dot)j(dot)saunders(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Invalid byte sequence for encoding "UTF8"
Date: 2007-05-15 23:54:19
Message-ID: 82DF53CA-A838-48E7-9133-574FEE5E0E64@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi Neil,

On May 15, 2007, at 5:51 PM, Neil Saunders wrote:

> Any idea why the --encoding flag didn't do this via pg_dump?

I'm not really sure. I supposed for one thing it might be difficult
to do the right thing going from SQL_ASCII to UTF8.

I had some issues with 8.0 -> 8.1 that I was able to fix with
something like this before dumping it:

update my_table set comments = translate(comments, chr(169), 'c')
where comments like '%' || chr(169) || '%';

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Richard Broersma Jr 2007-05-15 23:57:19 Re: aggregate function ?
Previous Message Raimon Fernandez 2007-05-15 23:38:49 Re: aggregate function ?