Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A73CE65061F for ; Tue, 15 Jul 2008 14:33:26 -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 76333-08 for ; Tue, 15 Jul 2008 14:33:15 -0300 (ADT) X-Greylist: delayed 00:07:05.861261 by SQLgrey-1.7.6 Received: from mail17.bluewin.ch (mail17.bluewin.ch [195.186.18.64]) by postgresql.org (Postfix) with ESMTP id A329F65054D for ; Tue, 15 Jul 2008 14:33:22 -0300 (ADT) X-FXIT-IP: IPv4[83.79.90.234] Epoch[1216142774] Received: from [83.79.90.234] ([83.79.90.234:2545] helo=[192.168.1.74]) by mail17.bluewin.ch (envelope-from ) (ecelerity 2.2.2.32 r(25176)) with ESMTP id 3D/7D-15399-5BDDC784; Tue, 15 Jul 2008 17:26:14 +0000 From: Ivo Rossacher Organization: P-Tools To: pgsql-admin@postgresql.org Subject: Re: Changing encoding Date: Tue, 15 Jul 2008 19:26:13 +0200 User-Agent: KMail/1.9.9 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807151926.13848.rossacher@bluewin.ch> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/138 X-Sequence-Number: 29748 For the SQL_ASCII tables it depends what was actually written to the tables. SQL_ASCII means that the server does not do any conversation and that the client is responsible for the used encoding. So if there is data in the table with different encodings (comming from different clients with different encodings) you need to fix this by hand (depending on the data size an editor, iconv, recode or similar might help you with this). The Latin1 tables might be fixed by iconv or be autodetected by the server. You can find details about the subject in the chapter 21.2 Character Set Support of the server documentation. Best regards Ivo Am Dienstag, 15. Juli 2008 16:14:25 schrieb Carol Walter: > Hello, > > I have some databases that use SQL ASCII or Latin1 encoding that need > to be UTF8. When I have drop the database and recreated it with the > correct encoding I get errors in restoring the data. How is this done? > > Carol