1 package PerlIO::encoding;
4 use Encode (); # Load but do not import anything.
6 XSLoader::load 'PerlIO::encoding';
12 PerlIO::encoding - encoding layer
16 open($f, "<:encoding(foo)", "infoo");
17 open($f, ">:encoding(bar)", "outbar");
20 $PerlIO::encoding::check = Encode::FB_PERLQQ();
24 Open a filehandle with a transparent encoding filter.
26 On input, convert the bytes expected to be in the specified
27 character set and encoding to Perl string data (Unicode and
28 Perl's internal Unicode encoding, UTF-8). On output, convert
29 Perl string data into the specified character set and encoding.
31 When the layer is pushed the current value of C<$PerlIO::encoding::check>
32 is saved and used as the check argument when calling the Encodings
37 L<open>, L<Encode>, L<perlfunc/binmode>, L<perluniintro>