X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ABAB7D1B1C8 for ; Mon, 28 Jun 2004 19:45:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69817-10 for ; Mon, 28 Jun 2004 22:45:11 +0000 (GMT) Received: from FE-mail03.sfg.albacom.net (FE-mail03.albacom.net [213.217.149.83]) by svr1.postgresql.org (Postfix) with ESMTP id EF2FCD1B17B for ; Mon, 28 Jun 2004 19:45:07 -0300 (ADT) Received: from [192.168.2.2] (81.88.224.83) by FE-mail03.sfg.albacom.net (7.0.009) (authenticated as ALS04419@Albaclick.com) id 40BB7E90003DD619; Tue, 29 Jun 2004 00:45:08 +0200 In-Reply-To: <200406282338.25074.rossacher@bluewin.ch> References: <200406282338.25074.rossacher@bluewin.ch> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: pgsql-admin@postgresql.org From: Jose' Cruanyes Subject: Re: Change the character encoding of a database Date: Tue, 29 Jun 2004 00:45:28 +0200 To: Ivo Rossacher X-Mailer: Apple Mail (2.618) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/361 X-Sequence-Number: 14021 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