-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
This is my script, and it prints gibberish:
#!/usr/bin/perl
use v5.18;
use warnings;
use IO::All -utf8;
binmode 'STDOUT', ':utf8';
my $line = io('name.txt')->[0];
say $line;This is name.txt:
ΑΛΕΞΑΝΔΡΟΣ
The problem is that :encoding(utf8) is not applied when using io('name.txt') as an arrayref.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels