Re: SOLVED: COPY doesn't works when containing ' ' or ' ' characters on db

Jaume Teixi <teixi@6tems.com>

From: Jaume Teixi <teixi@6tems.com>
To: pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org
Date: 2001-02-27T09:19:12Z
Lists: pgsql-hackers
On Mon, 26 Feb 2001 22:16:35 -0500 Tom Lane <tgl@sss.pgh.pa.us> wrote:

> 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!!!


I finally, thanks to Oliver Elphick,

managed to create database with:
	CREATE DATABASE "demo" WITH ENCODING = 'SQL_ASCII'

and data was imported OK, great, thanks!