Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D8CB91337B9D for ; Wed, 2 Mar 2011 21:45:18 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 43953-06-2 for ; Thu, 3 Mar 2011 01:45:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 551FA1337B43 for ; Wed, 2 Mar 2011 21:45:09 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 5D48414BE; Wed, 2 Mar 2011 20:45:09 -0500 (EST) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jHbUU+ujs-nl; Wed, 2 Mar 2011 20:45:08 -0500 (EST) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id D49A214B8; Wed, 2 Mar 2011 20:45:07 -0500 (EST) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id CF6E8AF10C; Thu, 3 Mar 2011 09:45:06 +0800 (WST) Message-ID: <4D6EF2A2.60808@postnewspapers.com.au> Date: Thu, 03 Mar 2011 09:45:06 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Jasmin Dizdarevic CC: pgsql-general@postgresql.org Subject: Re: ERROR: invalid byte sequence for encoding "UTF8": 0xc35c References: <4D6B1305.5010400@postnewspapers.com.au> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/84 X-Sequence-Number: 173345 On 03/03/11 09:18, Jasmin Dizdarevic wrote: > @ALL: Isn't it possible and wise to include an (optional) encoder in pgsql? > > we're importing a lot of data from textfiles, which are not utf-8. we > always have to change the encoding in another tool before using COPY. SET client_encoding -- Craig Ringer