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ă
In reply to Wide character in print by PetreAdi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |