Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0C921B5DC0F for ; Tue, 13 Sep 2011 17:07:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 05928-06 for ; Tue, 13 Sep 2011 20:07:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 75AA0B5DC07 for ; Tue, 13 Sep 2011 17:07:49 -0300 (ADT) Received: from [192.168.10.3] (AMontsouris-552-1-71-123.w92-140.abo.wanadoo.fr [92.140.38.123]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 6761C3B8F5; Tue, 13 Sep 2011 22:07:48 +0200 (CEST) Subject: Re: Problem restoring a dump From: Guillaume Lelarge To: Johann Spies Cc: "pgsql-admin@postgresql.org" Date: Tue, 13 Sep 2011 22:07:48 +0200 In-Reply-To: <20110913124740.GA30709@sun.ac.za> References: <20110913091831.GA26669@sun.ac.za> <7728C00C-EFC8-401E-A0A5-76A253269C89@2ndquadrant.it> <196cf71cbca8f7fb8505fb2da9469fbe@2ndquadrant.it> <20110913124740.GA30709@sun.ac.za> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3 (3.0.3-1.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1315944468.5302.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/87 X-Sequence-Number: 38324 On Tue, 2011-09-13 at 14:47 +0200, Johann Spies wrote: > Thanks Giulio and Gabriele, > > > as Giulio pointed out, it seems like the destination database is in > > LATIN1 encoding, rather than UTF8. Could you please confirm this? > > That was the case. I deleted one of the databases and recreated it with > as a UTF-8 encoded database and the import went well. > > Question: Can I change the encoding system of an existing database? If > so, how? > No, you can't. You need to create a new one with the good encoding. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com