Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Text::CSV_XS and encoding

by PeterKaagman (Sexton)
on Sep 17, 2018 at 17:23 UTC ( [id://1222524]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-16 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found