Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Accent Characters and Text::CSV_XS

by jZed (Prior)
on Jan 21, 2005 at 17:55 UTC ( [id://424082]=note: print w/replies, xml ) Need Help??


in reply to Re: Accent Characters and Text::CSV_XS
in thread Accent Characters and Text::CSV_XS

Yes, borisz is correct, if you start Text::CSV_XS in binary mode, all of the characters will be accepted. Minor caveat - the new() method takes a hashref, not a hash, so the correct way is:
my $csv = Text::CSV_XS->new( {binary=>1} );

The next release of Text::CSV_XS will provide an option for defaulting for this behaviour rather than having to declare it on a script-by-script basis.

Replies are listed 'Best First'.
Re^3: Accent Characters and Text::CSV_XS
by existem (Sexton) on Jan 21, 2005 at 18:22 UTC

    thanks for the help, I will try that out.

    cheers,
    Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-29 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found