X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 37DE5D95B0 for ; Wed, 21 Sep 2005 05:14:44 -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 16181-05 for ; Wed, 21 Sep 2005 08:14:38 +0000 (GMT) Received: from barge.anchor.net.au (unknown [203.202.1.123]) by svr1.postgresql.org (Postfix) with ESMTP id 2BB97D95B9 for ; Wed, 21 Sep 2005 05:14:38 -0300 (ADT) Received: from [192.168.1.4] (dsl-58-6-32-215.nsw.westnet.com.au [58.6.32.215]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by barge.anchor.net.au (Postfix) with ESMTP id F2D221008C for ; Wed, 21 Sep 2005 18:14:35 +1000 (EST) Message-ID: <433116DF.7050108@backstagetech.com.au> Date: Wed, 21 Sep 2005 18:16:31 +1000 From: Scott Eade User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Converting from LATIN1 to UNICODE encoding? X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/216 X-Sequence-Number: 18953 I have a database that was created using the LATIN1 encoding. Is it necessary for me to convert the database to some other encoding (e.g. UNICODE) before I can store non-LATIN1 characters or does PostgreSQL catch these and encode them somehow? I have actually been attempting to convert a database by doing a pg_dump (from the LATIN1 database) followed by a pg_restore (to one created with the UNICODE encoding). Seemed to work with a sparsely populated 8.0.3 database, but I am running into all sorts of problems with 7.3.10 (e.g. corrupted database followed by corrupted pg_clog). What about JDBC, how does it know the encoding of the data I throw at it? I guess I should ask this last question on the JDBC list. Thanks in advance for any comments. Scott