From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaume Teixi <teixi@6tems.com>
Cc: pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org, "Richard T. Robino" <rickspam@wavedivision.com>
Cc: Stefan Huber <schweinsaug@crosswinds.net>
Subject: Re: COPY doesn't works when containing ' ' or ' ' characters on db
Date: Mon, 26 Feb 2001 22:16:35 -0500
Message-ID: <27748.983243795@sss.pgh.pa.us> (raw)
In-Reply-To: <20010226142858.2f1fcee8.teixi@6tems.com>
References: <20010226142858.2f1fcee8.teixi@6tems.com>
Jaume Teixi <teixi@6tems.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, teixi@6tems.com, rickspam@wavedivision.com, schweinsaug@crosswinds.net
Subject: Re: COPY doesn't works when containing ' ' or ' ' characters on db
In-Reply-To: <27748.983243795@sss.pgh.pa.us>
References: <20010226142858.2f1fcee8.teixi@6tems.com> <27748.983243795@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox