Skip to content

-utf8 not applied everywhere #93

@akarelas

Description

@akarelas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions