Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C2F2E64FC26 for ; Thu, 25 Sep 2008 04:59:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 28770-08 for ; Thu, 25 Sep 2008 04:59:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by postgresql.org (Postfix) with ESMTP id B7D4264FC01 for ; Thu, 25 Sep 2008 04:59:34 -0300 (ADT) Received: by fg-out-1718.google.com with SMTP id 16so233293fgg.23 for ; Thu, 25 Sep 2008 00:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Z/z2cQqsfbNVi/eU01yEib0leCUX6HuBz3mdonH0PKM=; b=l4xLu6xp4R5KmnauOFcxpApbk4D5WsVFkzEtD9cT5pdF3i9SdrNkuOzGz8Edi9oB5i b1OSdZYV6/+tZX2ocKMpbwMKXrYcDWAmSnEXMcnQt4yfLHu82vVTwzy48/GCepimoEJz 29jme9K6HWv1WQ3vVGm2vRWiQ37dUNVytXdDc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=VSzGNZ6M0JeZvCZtQ3xLugmYoFuODal6f4dRdYf0WNLz4inUOZAwpMEBjt+zpbdzkk DgI5ptKr357Wzi9ur45IIpyJtC4YZ9jP+fgCswZk9wO7kJs2G7aEDHfsYhAfWIBc9jKT Qci2BtFiMb9VIPfvRNaujfKpgIP28DebL3JmE= Received: by 10.86.52.6 with SMTP id z6mr8407483fgz.18.1222329571917; Thu, 25 Sep 2008 00:59:31 -0700 (PDT) Received: by 10.86.79.10 with HTTP; Thu, 25 Sep 2008 00:59:31 -0700 (PDT) Message-ID: Date: Thu, 25 Sep 2008 09:59:31 +0200 From: "Claus Guttesen" To: pgsql-admin@postgresql.org Subject: iso-8859-1 and utf-8 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/297 X-Sequence-Number: 30390 Hi. I found out by accident that my db-dump, at least in ver. 8.3.3, automagically converts from iso-8859-1 to utf-8. Our db has been around since January 2000 and iso-8859-1 was chosen back then as encoding. When I occasionally imported the nightly dump to a test-db it would complain very early during the import and abort if the encoding was incorrect. I think this was also the case with 8.3.1 although I'm not certain. Yesterday I did another import on my test-db and this was created with utf-8 as encoding. The import did not complain and I ended up with an utf-8-db which is what we have aimed at in the near future. Our web had some iso-8859-1-quirks which we have solved. I've started to plan a migration to utf-8. I assume it requires a complete db-dump, delete the iso-8859-1-db, create an utf-8-db and do an import. Previously I had piped the dump through iconv to convert but this does not seem to be a requirement any longer. -- regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is the soonest winner. Shakespeare