Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1RHNtx81641; Tue, 27 Feb 2001 12:23:55 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f1RHJ2903315; Tue, 27 Feb 2001 12:19:02 -0500 (EST) To: "Oliver Elphick" cc: Jaume Teixi , pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org, "Richard T. Robino" , Stefan Huber Subject: Re: COPY doesn't works when containing ' ' or ' ' characters on db In-reply-to: <200102271538.f1RFcFw09744@linda.lfix.co.uk> References: <200102271538.f1RFcFw09744@linda.lfix.co.uk> Comments: In-reply-to "Oliver Elphick" message dated "Tue, 27 Feb 2001 15:38:15 +0000" Date: Tue, 27 Feb 2001 12:19:01 -0500 Message-ID: <3309.983294341@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200102/223 X-Sequence-Number: 830 "Oliver Elphick" writes: > I think this happens when the front-end encoding is SQL_ASCII and the > database is using UNICODE. Then, there are misunderstandings between > front-end and back-end, so that a single character with the eighth bit > set may be sent by the front-end and interpreted by the back-end as the > first half of a UNICODE two-byte character. I wondered about that, but his examples had one or more characters between the eighth-bit-set character and the '|', so this doesn't seem to explain the problem. Still, if it went away after moving to ASCII encoding, it clearly is a multibyte issue of some sort. regards, tom lane