Re: Migrating from 7.1 to 7.2 using pg_dump/pg_restore fails - UNICODE error

From: "Soeren Laursen" <sl(at)scrooge(dot)dk>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Migrating from 7.1 to 7.2 using pg_dump/pg_restore fails - UNICODE error
Date: 2003-07-06 22:01:04
Message-ID: 3F08B840.14696.2D891A9@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I am not sure how and where I should use the \encoding latin1

Something like,

psql test01
\encodinng latin1
\q

pg_restore .....

Regards

Søren,

> В Вск, 06.07.2003, в 19:57, Soeren Laursen пишет:
>
> > pg_restore: ERROR: copy: line 1, Invalid UNICODE character sequence
> > found (0xf87665)
>
> > No need to say that the new database is created with UNICODE
> > encoding?!
>
> use
>
> \encoding latin1
>
> once when you import the data. That'll convert the data from latin1 to
> utf-8 encoded unicode on the fly. Then again I don't know what charset
> denmark uses usually, probably some other latin variant.
>
> --
> Markus Bertheau.
> Berlin, Berlin.
> Germany.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message aromero 2003-07-06 22:20:35 Problem when migrating my BB.DD Postgresql 7.2.3 to Postgresql 7.3.2
Previous Message Markus Bertheau 2003-07-06 21:13:33 Re: Migrating from 7.1 to 7.2 using pg_dump/pg_restore