Re: Unknown character on copy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "THOMPSON, JARED (ATTBAPCO)" <JT060b(at)ATT(dot)COM>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Unknown character on copy
Date: 2011-07-22 14:25:29
Message-ID: 9364.1311344729@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"THOMPSON, JARED (ATTBAPCO)" <JT060b(at)ATT(dot)COM> writes:
> I have noticed on some of my imports with copy I will get a funny
> character now and then in some of the data. When it shows up it will
> always be the first character in the string.

Is it also in the first line of the COPY data file?

If so, it's probably a Unicode byte order mark. That's not really
legitimate in UTF8 data, but some Windows text editors are broken enough
to insert one at the start of a file anyway.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message THOMPSON, JARED (ATTBAPCO) 2011-07-22 14:27:41 Re: Unknown character on copy
Previous Message THOMPSON, JARED (ATTBAPCO) 2011-07-22 14:08:14 Unknown character on copy