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 f1R3Glx64845; Mon, 26 Feb 2001 22:16:47 -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 f1R3GZ927751; Mon, 26 Feb 2001 22:16:35 -0500 (EST) To: Jaume Teixi cc: 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: <20010226142858.2f1fcee8.teixi@6tems.com> References: <20010226142858.2f1fcee8.teixi@6tems.com> Comments: In-reply-to Jaume Teixi message dated "Mon, 26 Feb 2001 14:28:58 +0100" Date: Mon, 26 Feb 2001 22:16:35 -0500 Message-ID: <27748.983243795@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200102/216 X-Sequence-Number: 823 Jaume Teixi writes: > I finally percated that when data contains 'ņ' or 'ā' it's impossible to > parse trought: > COPY products FROM '/var/lib/postgres/dadesi.txt' USING DELIMITERS '|' \g > it causes: > SELECT edicion FROM products; > edicion > ----------------- > Espaņa|Nacional <-------puts on the same cell either there's an '|' in > the middle!!! Very odd. What LOCALE and multibyte encodings are you using, if any? This seems like it must be a multibyte issue, but I can't guess what. Also, which Postgres version are you running? If you said, I missed it. regards, tom lane