Re: Change the character encoding of a database - Mailing list pgsql-admin

From Jose' Cruanyes
Subject Re: Change the character encoding of a database
Date
Msg-id DA147AD0-C954-11D8-8348-0003935B359C@cegroup.it
Whole thread Raw
In response to Change the character encoding of a database  (Ivo Rossacher <rossacher@bluewin.ch>)
List pgsql-admin
On Jun 28, 2004, at 11:38 PM, Ivo Rossacher wrote:

>
> I did try to dump the database by pgdump database > dump.dmp, droped
> the
> database, recreate it with the encoding UNICODE and restore the dump
> by psql
> database < dump.dmp which worked after some small changes (change the
> client
> encoding to UNICODE) in the dump.dmp. Without the changes in the
> dump.dmp
> there was a error message about invalide codes and no import at all.
> With the
> changes there are still some encoding mistakes (wrong signes in the
> strings)
> but the import basically works.

I've solved this changing the encoding of the dump.dmp file from ASCII
to UTF8

Pax et Bonum

# dott. Jose' Cruanyes Aguilar  -  C.E. Soft srl
#  Pzza. Firenze,4 MILANO  -  XX Settembre 10, CREMONA
#   02,33603122                0372,460602


pgsql-admin by date:

Previous
From: jseymour@linxnet.com (Jim Seymour)
Date:
Subject: Re: pg_ctl question
Next
From: Jeff Keller
Date:
Subject: Re: Capacity Planning