use open ':encoding(iso-8859-7)';
use open IO => ':encoding(iso-8859-7)';
+The matching of encoding names is loose: case does not matter, and
+many encodings have several aliases. See L<Encode::Supported> for
+details and the list of supported locales.
+
+Note that C<:utf8> discipline must always be specified exactly like
+that, it is not subject to the loose matching of encoding names.
+
When open() is given an explicit list of layers they are appended to
the list declared using this pragma.
binmode(STDOUT, ":encoding(UTF-8)");
binmode(STDOUT, ":encoding(shift_jis)");
+The matching of encoding names is loose: case does not matter, and
+many encodings have several aliases. Note that C<:utf8> discipline
+must always be specified exactly like that, it is not subject to the
+loose matching of encoding names.
+
See L<PerlIO> for the C<:utf8> layer;
L<PerlIO::encoding> and L<Encode::PerlIO> for the C<:encoding()> layer;
L<Encode::Supported> for many encodings supported by the C<Encode> module.