http://qs1969.pair.com?node_id=202530


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.