Re: encoding confusion with \copy command - Mailing list pgsql-general

From John DeSoi
Subject Re: encoding confusion with \copy command
Date
Msg-id 12479AF9-511E-413D-9575-304F9B8B5B86@pgedit.com
Whole thread Raw
In response to Re: encoding confusion with \copy command  (Martin Waite <waite.134@gmail.com>)
Responses Re: encoding confusion with \copy command  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: encoding confusion with \copy command  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
On Sep 17, 2014, at 11:52 AM, Martin Waite <waite.134@gmail.com> wrote:

> You are right that I need an intermediate step.  I will probably use a CSV parser that is liberal in what it accepts,
butwrites out strict CSV data suitable for postgres. 
>

If you find such a utility, please share. My clients love Excel, but it takes perfectly valid CSV files and makes them
unreadableby Postgres. In particular, Excel saves rows with fewer columns than the header header row if the cells are
empty.It also mangles valid UTF-8. I often take Excel CSV files and re-save them from Open Office to fix them for
Postgresimport. 

John DeSoi, Ph.D.



pgsql-general by date:

Previous
From: cowwoc
Date:
Subject: Re: Why isn't Java support part of Postgresql core?
Next
From: John R Pierce
Date:
Subject: Re: Why isn't Java support part of Postgresql core?