PerlIO::encoding(3) Perl Programmers Reference Guide PerlIO::encoding(3) NAME PerlIO::encoding - encoding(3,n) layer SYNOPSIS open(2,3,n)($f, "<:encoding(foo)", "infoo"); open(2,3,n)($f, ">:encoding(bar)", "outbar"); use Encode qw(:fallbacks); $PerlIO::encoding::fallback = FB_PERLQQ; DESCRIPTION Open a filehandle with a transparent encoding(3,n) filter. On input, convert the bytes expected to be in(1,8) the specified character set(7,n,1 builtins) and encoding(3,n) to Perl string(3,n) data (Unicode and Perl's internal Uni- code encoding(3,n), UTF-8). On output, convert Perl string(3,n) data into the specified character set(7,n,1 builtins) and encoding. When the layer is pushed the current value of $PerlIO::encoding::fall- back is saved and used as the check argument when calling the Encodings encode and decode. SEE ALSO open(2,3,n), Encode, "binmode" in(1,8) perlfunc, perluniintro perl v5.8.5 2001-09-21 PerlIO::encoding(3)