PetreAdi has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to write a Perl script using the "utf8" . In my file have data
data.txt
î ă
☺
Ți ța
întâ să
use strict; use warnings; my $filename = 'data.txt'; open(my $fh, '<:encoding(UTF-8)', $filename) or die "Could not open file '$filename' $!"; while (my $row = <$fh>) { chomp $row; print "$row\n"; }
I expect to get
î ă
☺
Ți ța
întâ să
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wide character in print
by choroba (Cardinal) on Jan 22, 2014 at 10:27 UTC | |
by Jim (Curate) on Jan 26, 2014 at 00:11 UTC |