in reply to Problem with special characters in a csv file
That will allow "funny characters" directly in the CSV file.my $csv = Text::CSV_XS->new ({'always_quote' => 1, 'eol' => "\n", 'binary' => 1, });
If you are determined to change the characters to entities, you could do it something like this:
$string=~s/[\x7f-\xff\&]/"&#".ord($1).";"/ge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with special characters in a csv file
by shilpam (Sexton) on Jul 22, 2004 at 08:54 UTC | |
|
Re^2: Problem with special characters in a csv file
by Anonymous Monk on Apr 16, 2011 at 08:10 UTC |