dumpstops: encode output as UTF-8

This commit is contained in:
Birte Kristina Friesel 2024-04-07 11:23:35 +02:00
parent 875ec1c3e5
commit a72b6192ed
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -20,7 +20,8 @@ sub run {
$self->help; $self->help;
} }
elsif ( $command eq 'csv' ) { elsif ( $command eq 'csv' ) {
open( my $fh, '>', $filename ) or die("open($filename): $!\n"); open( my $fh, '>:encoding(utf-8)', $filename )
or die("open($filename): $!\n");
my $csv = Text::CSV->new( { eol => "\r\n" } ); my $csv = Text::CSV->new( { eol => "\r\n" } );
$csv->combine(qw(name eva lat lon source archived)); $csv->combine(qw(name eva lat lon source archived));