Re: SOLVED: COPY doesn't works when containing ' ' or ' ' characters on db - Mailing list pgsql-admin

From Jaume Teixi
Subject Re: SOLVED: COPY doesn't works when containing ' ' or ' ' characters on db
Date
Msg-id 20010227101912.62338293.teixi@6tems.com
Whole thread Raw
In response to Re: COPY doesn't works when containing ' ' or ' ' characters on db  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses log files  ("Rainer Mager" <rmager@vgkk.com>)
List pgsql-admin
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!


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: COPY doesn't works when containing ' ' or ' ' characters on db
Next
From: "Tim White"
Date:
Subject: Re: indexing