Re: Unknown character on copy - Mailing list pgsql-novice

From Tom Lane
Subject Re: Unknown character on copy
Date
Msg-id 9364.1311344729@sss.pgh.pa.us
Whole thread Raw
In response to Unknown character on copy  ("THOMPSON, JARED (ATTBAPCO)" <JT060b@ATT.COM>)
Responses Re: Unknown character on copy  ("THOMPSON, JARED (ATTBAPCO)" <JT060b@ATT.COM>)
Re: Unknown character on copy  ("THOMPSON, JARED (ATTBAPCO)" <JT060b@ATT.COM>)
List pgsql-novice
"THOMPSON, JARED (ATTBAPCO)" <JT060b@ATT.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

pgsql-novice by date:

Previous
From: "THOMPSON, JARED (ATTBAPCO)"
Date:
Subject: Unknown character on copy
Next
From: "THOMPSON, JARED (ATTBAPCO)"
Date:
Subject: Re: Unknown character on copy