in reply to Re: using binmode() to override default encoding specified in "use open"
in thread using binmode() to override default encoding specified in "use open"

Hm. :encoding() not being a function, and perldoc encoding talking about something unrelated, it wasn't immediately clear where to find :encoding()'s documentation. I ended up choosing utf8 over UTF-8 because perldoc Encode::Supported, which I found when casting about for encoding info, indicated the former form was canonical. But now I suspect I should have been looking at perldoc Encode instead.

But I'm still not completely sure. Perl's encoding documentation is a twisty maze of little passages, all different, and I've not yet found a signpost definitively stating "These are the legal arguments to :encoding() and what they mean."

Replies are listed 'Best First'.
Re^3: using binmode() to override default encoding specified in "use open"
by ikegami (Pope) on Jul 23, 2020 at 04:31 UTC

    That is incorrect. "utf8" is an extension to UTF-8 used by Perl internally. "UTF-8" is the standard encoding. (The names are case-insensitive.)

    I have no idea why that pages says they are equivalent. They are not. See :encoding(UTF-8) vs :encoding(utf8) vs :utf8.