Re: Easy way to convert a database from WIN1252 to UTF8?

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Easy way to convert a database from WIN1252 to UTF8?
Date: 2010-07-01 16:44:19
Message-ID: 20100701164418.GI7584@samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jul 01, 2010 at 09:31:12AM -0700, Mike Christensen wrote:
> Then, I edited the file in Notepad and saved it as UTF8 which also
> appears to have worked.

I don't think you want to be doing this. The file should contain a "set
client_encoding" of the correct value which will let PG to do the "right
thing" when you import it back into a UTF8 database.

--
Sam http://samason.me.uk/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Phil Jackson 2010-07-01 16:46:25 Cannot open table in new database
Previous Message Mike Christensen 2010-07-01 16:38:37 Re: Easy way to convert a database from WIN1252 to UTF8?