Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Text::CSV_XS and encoding

by PeterKaagman (Acolyte)
on Sep 17, 2018 at 17:23 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-05-19 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?