X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 557B53A484A for ; Thu, 4 Nov 2004 07:23:45 +0000 (GMT) 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 43048-01 for ; Thu, 4 Nov 2004 07:23:43 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 1BCD63A4847 for ; Thu, 4 Nov 2004 07:23:43 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id iA47NfJ7043058 for ; Thu, 4 Nov 2004 07:23:41 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id iA478hxB039550 for pgsql-jdbc@postgresql.org; Thu, 4 Nov 2004 07:08:43 GMT From: mbch67@yahoo.com X-Newsgroups: comp.databases.postgresql.interfaces.jdbc Subject: Re: 8.0.0beta4: "copy" and "client_encoding" Date: 3 Nov 2004 23:08:43 -0800 Organization: http://groups.google.com Lines: 20 Message-ID: References: <41893BC8.6000201@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.6 tagged_above=0.0 required=5.0 tests=FORGED_YAHOO_RCVD, FROM_ENDS_IN_NUMS, NO_REAL_NAME X-Spam-Level: * X-Archive-Number: 200411/52 X-Sequence-Number: 11474 Thanks Kris and Oliver for your explanations. Why I want to set the client_encoding to latin1? That's a fair question. Unfortunately I removed the statement following the COPY command to keep the posting short: SET CLIENT_ENCODING TO 'LATIN1'; COPY temp_test FROM '/home/postgres/temp_test.dat'; I want to load a latin1-encoded file using the COPY command. Not setting the encoding leads to the following error message: 22021 ERROR: Unicode characters greater than or equal to 0x10000 are not supported Executing the same COPY statement with psql works fine. Cheers, Adrian