Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 07759B5DBD1 for ; Tue, 13 Sep 2011 06:25:23 -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 48872-01 for ; Tue, 13 Sep 2011 09:25:17 +0000 (UTC) X-Greylist: delayed 00:06:39.246892 by SQLgrey-1.7.6 Received: from mail2.sun.ac.za (mail2.sun.ac.za [146.232.64.14]) by mail.postgresql.org (Postfix) with ESMTP id 91220B5DBC4 for ; Tue, 13 Sep 2011 06:25:16 -0300 (ADT) Received: from artikel.sun.ac.za ([146.232.82.145]) by mail2.sun.ac.za with esmtp (Exim 4.69) (envelope-from ) id 1R3P8R-0008Pv-V8 for pgsql-admin@postgresql.org; Tue, 13 Sep 2011 11:18:32 +0200 Received: from js by artikel.sun.ac.za with local (Exim 4.76) (envelope-from ) id 1R3P8R-00078E-I2 for pgsql-admin@postgresql.org; Tue, 13 Sep 2011 11:18:31 +0200 Date: Tue, 13 Sep 2011 11:18:31 +0200 From: Johann Spies To: pgsql-admin@postgresql.org Subject: Problem restoring a dump Message-ID: <20110913091831.GA26669@sun.ac.za> Mail-Followup-To: Johann Spies , pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/77 X-Sequence-Number: 38314 Good day, I have installed postgresql 9.0 on my Debian and thought that restoring the database would be as simple as psql -f . However: I get several errors like this: psql:pgdump.txt.1:4453471: ERROR: character 0xe280a6 of encoding "UTF8" has no equivalent in "LATIN1" I have changed the client-encoding of psql to UTF8 but I see after the restore of the dump the encoding is still LATIN1. How do I overcome this? Regards Johann -- Johann Spies Telefoon: 021-808 4699 Databestuurder / Data manager Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie Centre for Research on Evaluation, Science and Technology Universiteit Stellenbosch. "For my thoughts are not your thoughts, neither are your ways my ways, saith the LORD. For as the heavens are higher than the earth, so are my ways higher than your ways, and my thoughts than your thoughts." Isaiah 55:8,9