X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 2C1109FAC9B for ; Thu, 20 Jul 2006 22:00:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 17230-01 for ; Fri, 21 Jul 2006 01:00:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from a2s5.a2hosting.com (host-209-124-50-10.a2webhosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id 801119FA42F for ; Thu, 20 Jul 2006 22:00:52 -0300 (ADT) Received: from adsl-6-44-83.tys.bellsouth.net ([65.6.44.83] helo=[192.168.1.10]) by a2s5.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1G3jNq-0006x8-8y; Thu, 20 Jul 2006 21:00:50 -0400 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2DA88E8B-72D7-4430-AC84-4976A40BBB66@pgedit.com> Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: Other Characterset to UTF8 Date: Thu, 20 Jul 2006 21:00:09 -0400 To: Abu Mushayeed X-Mailer: Apple Mail (2.752.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200607/169 X-Sequence-Number: 22415 On Jul 20, 2006, at 5:54 PM, Abu Mushayeed wrote: > 1. set client_encoding = 'LATIN1'; > 2. COPY FROM ' > The data gets into the database. The datbase has some inbuilt > functions that translates the data from LATIN1 to UTF8. > > The question is it works but is this correct? Yes, it is correct assuming the data in the file is really latin1 :). You tell PostgreSQL what character set you are using on the client side and it takes care of converting it to the encoding used for the database. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL