X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2B0413A3EC8 for ; Fri, 12 Nov 2004 08:18:44 +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 15280-06 for ; Fri, 12 Nov 2004 08:18:41 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 636413A3CE0 for ; Fri, 12 Nov 2004 08:18:41 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1CSWdk-00025Z-Dy; Fri, 12 Nov 2004 08:18:40 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 7AA6617A65; Fri, 12 Nov 2004 08:18:39 +0000 (GMT) Message-ID: <419471DE.1030900@archonet.com> Date: Fri, 12 Nov 2004 08:18:38 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David B Cc: pgsql-sql@postgresql.org Subject: Re: Unicode problem inserting records - Invalid UNICODE character References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------070807090602000003010105" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200411/122 X-Sequence-Number: 19441 This is a multi-part message in MIME format. --------------070807090602000003010105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit David B wrote: > show client_encoding gives: > UNICODE > > databases reads: > DATABASE OWNER ENCODING OK - with the same settings here, I start psql and do: \i unicode_import_test.txt I get: CREATE TABLE t --------- AAA À È Ð Ø ZZZ (3 rows) In case this gets garbled by my email, the middle line contains four accented characters, with accents as follows: A` E` D- O/ Actually, this doesn't display properly in my usual terminal (konsole under KDE) but does under xterm. -- Richard Huxton Archonet Ltd --------------070807090602000003010105 Content-Type: text/plain; name="unicode_import_test.txt" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="unicode_import_test.txt" CREATE TABLE foo (t text); -- DELETE FROM foo; COPY foo FROM STDIN; AAA À È Ã� Ø ZZZ \. SELECT * FROM foo; --------------070807090602000003010105--