in reply to XLSX to CSV with high ASCII characters
Does this work ?
poj#!/usr/bin/perl use strict; use Text::CSV; my $outputFile = 'bar.csv'; my $csv = Text::CSV->new ( { binary => 1, eol => "\n" } ) or die "Cannot use CSV: ".Text::CSV->error_diag (); open my $fh, ">:encoding(utf-8)", $outputFile or die "$outputFile: $!"; $csv->print ($fh, ['Nicolás',123]); close $fh or die "$outputFile: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XLSX to CSV with high ASCII characters
by apu (Sexton) on Aug 26, 2017 at 19:39 UTC | |
by poj (Abbot) on Aug 26, 2017 at 19:46 UTC | |
by apu (Sexton) on Aug 26, 2017 at 19:52 UTC | |
by 1nickt (Canon) on Aug 26, 2017 at 21:10 UTC | |
by apu (Sexton) on Aug 26, 2017 at 21:57 UTC |