X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id D64BDB439A8 for ; Sun, 6 Jul 2003 22:01:26 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 59921-07 for ; Sun, 6 Jul 2003 19:01:15 -0300 (ADT) Received: from HUGIN (213.237.12.36.adsl.ynoe.worldonline.dk [213.237.12.36]) by svr1.postgresql.org (Postfix) with ESMTP id 1EAB3B438AA for ; Sun, 6 Jul 2003 19:01:13 -0300 (ADT) Received: from amavis by HUGIN with scanned-ok (Exim 3.12 #1 (Debian)) id 19ZHZC-0005os-00 for ; Mon, 07 Jul 2003 00:01:06 +0200 Received: from athlon-pc ([10.0.0.2] helo=athlon-800) by HUGIN with esmtp (Exim 3.12 #1 (Debian)) id 19ZHZ2-0005oZ-00; Mon, 07 Jul 2003 00:00:56 +0200 From: "Soeren Laursen" To: Markus Bertheau Date: Mon, 07 Jul 2003 00:01:04 +0200 MIME-Version: 1.0 Subject: Re: Migrating from 7.1 to 7.2 using pg_dump/pg_restore fails - UNICODE error Reply-To: soeren.laursen@scrooge.dk Cc: pgsql-admin@postgresql.org Message-ID: <3F08B840.14696.2D891A9@localhost> References: <3F087F18.11871.1F94D4B@localhost> In-reply-to: <1057526012.2570.1.camel@saphir> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/56 X-Sequence-Number: 9397 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=F8ren, > =D0=92 =D0=92=D1=81=D0=BA, 06.07.2003, =D0=B2 19:57, Soeren Laursen =D0= =BF=D0=B8=D1=88=D0=B5=D1=82: > > > 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.