I use COPY to import a file in my database
COPY mytable(c1, c2) FROM '/tmp/myfile.csv' WITH DELIMITER ';' CSV HEADER
And as usual, there are some "bad" caracters in the file wich generates encoding SQL error:
ERROR: invalid byte sequence for encoding "UTF8": 0xdf 0x4f
So I open the file and delete the line but, is there a way to COPY a file excluding by default this kind of line ?
Thanks for help