Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Re: Text::CSV

by dilbert (Novice)
on Oct 03, 2002 at 14:27 UTC ( #202530=note: print w/replies, xml ) Need Help??

in reply to Re: Text::CSV
in thread Text::CSV

If you use Text::CSV_XS, you can handle those characters if you turn on the 'binary' option, like this:
use Text::CSV_XS; $csv = Text::CSV->new({binary => 1}); ... $csv->parse($_); @fields = $csv->fields();
Really nifty if you have to parse a CSV file with French text with accented characters and newlines in it...

Replies are listed 'Best First'.
Re: Re: Re: Text::CSV
by AssFace (Pilgrim) on May 20, 2004 at 23:21 UTC
    Just to be nit-picky, I think that is:
    $csv = Text::CSV_XS->new({binary => 1});
    Those that pointed out that this would resolve working with text that has accents in it - I love you. I was going absolutely batty trying to deal with this text that I needed to convert to XML.

    There are some odd things afoot now, in the Villa Straylight.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2021-12-04 00:46 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (30 votes). Check out past polls.