1PerlIO::encoding(3pm) Perl Programmers Reference Guide PerlIO::encoding(3pm)
2
3
4
6 PerlIO::encoding - encoding layer
7
9 open($f, "<:encoding(foo)", "infoo");
10 open($f, ">:encoding(bar)", "outbar");
11
12 use Encode qw(:fallbacks);
13 $PerlIO::encoding::fallback = FB_PERLQQ;
14
16 Open a filehandle with a transparent encoding filter.
17
18 On input, convert the bytes expected to be in the specified character
19 set and encoding to Perl string data (Unicode and Perl's internal Uni‐
20 code encoding, UTF-8). On output, convert Perl string data into the
21 specified character set and encoding.
22
23 When the layer is pushed the current value of $PerlIO::encoding::fall‐
24 back is saved and used as the CHECK argument when calling the Encode
25 methods encode() and decode().
26
28 open, Encode, "binmode" in perlfunc, perluniintro
29
30
31
32perl v5.8.8 2001-09-21 PerlIO::encoding(3pm)