From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mikel Lindsaar <raasdnil@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Importing data - possible UTF8 import bug?
Date: Thu, 10 Jul 2008 23:32:38 -0400
Message-ID: <23594.1215747158@sss.pgh.pa.us> (raw)
In-Reply-To: <57a815bf0807101902o193644ear50e211e67663d874@mail.gmail.com>
References: <57a815bf0807101902o193644ear50e211e67663d874@mail.gmail.com>
"Mikel Lindsaar" <raasdnil@gmail.com> writes:
> But I am hitting a problem. When I try to import the result with COPY
> I am getting:
> ERROR: invalid byte sequence for encoding "UTF8": 0xa2
> And gives me a line reference.
> I then grabbed that line out of the file, unpacked each byte into a
> decimal representation and 162 does not appear anywhere.
Sure you're counting the lines right? I believe the number COPY
gives you is the N'th line of COPY data (ie, N lines after the
COPY command) --- not the N'th line of the whole file. Another
thing to check is whether embedded newlines &such are throwing
off your count.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, raasdnil@gmail.com
Subject: Re: Importing data - possible UTF8 import bug?
In-Reply-To: <23594.1215747158@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