Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Text::CSV

by dilbert (Novice)
on Oct 03, 2002 at 14:27 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-25 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found