in reply to Re^3: Text::CSV_XS and encoding
in thread Text::CSV_XS and encoding

The thing which triggered my interest in BOM detection was an ugly escape sequence at the very beginning of my original data stream. I suspected it to be a BOM. I was kinda hoping BOM detection would get it out of the way. Otherwise I've got to come up with some other way of stripping it off.

Replies are listed 'Best First'.
Re^5: Text::CSV_XS and encoding
by poj (Abbot) on Sep 17, 2018 at 20:42 UTC

    Post the results of this program to show what those bytes at the beginning of the file are.

    #!/usr/bin/perl use strict; use Devel::Peek; open my $FH, "<:raw", "./test2.csv" or die "./test.csv $!"; my $line = <$FH>; Dump $line;
    poj