Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Parsing MS SQL CSV export with Text::CSV_XS

by Tux (Abbot)
on Oct 22, 2008 at 19:16 UTC ( #718841=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Text::CSV_XS;
    use Data::Peek;
    ...
    print DPeek, "\n" for $csv->fields;
    $csv->parse (qq{"ab\nc\x{20ac}\x80",\r"\n});
    $csv->error_diag;
    
  2. or download this
    PV("ab\nc\342\202\254\302\200"\0) [UTF8 "ab\nc\x{20ac}\x{80}"]
    # CSV_XS ERROR: 2031 - EIF - CR char is first char of field, not part 
    +of EOL
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-01-25 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?