2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <title>PerlIO::encoding - encoding layer
</title>
6 <meta http-equiv=
"content-type" content=
"text/html; charset=utf-8" />
7 <link rev=
"made" href=
"mailto:" />
10 <body style=
"background-color: white">
11 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
12 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
13 <big><strong><span class=
"block"> PerlIO::encoding - encoding layer
</span></strong></big>
17 <p><a name=
"__index__"></a></p>
22 <li><a href=
"#name">NAME
</a></li>
23 <li><a href=
"#synopsis">SYNOPSIS
</a></li>
24 <li><a href=
"#description">DESCRIPTION
</a></li>
25 <li><a href=
"#see_also">SEE ALSO
</a></li>
32 <h1><a name=
"name">NAME
</a></h1>
33 <p>PerlIO::encoding - encoding layer
</p>
37 <h1><a name=
"synopsis">SYNOPSIS
</a></h1>
39 open($f,
"<:encoding(foo)
",
"infoo
");
40 open($f,
">:encoding(bar)
",
"outbar
");
</pre>
42 use Encode qw(:fallbacks);
43 $PerlIO::encoding::fallback = FB_PERLQQ;
</pre>
47 <h1><a name=
"description">DESCRIPTION
</a></h1>
48 <p>Open a filehandle with a transparent encoding filter.
</p>
49 <p>On input, convert the bytes expected to be in the specified
50 character set and encoding to Perl string data (Unicode and
51 Perl's internal Unicode encoding, UTF-
8). On output, convert
52 Perl string data into the specified character set and encoding.
</p>
53 <p>When the layer is pushed the current value of
<code>$PerlIO::encoding::fallback
</code>
54 is saved and used as the CHECK argument when calling the Encode methods
<code>encode()
</code>
59 <h1><a name=
"see_also">SEE ALSO
</a></h1>
60 <p><a href=
"file://C|\msysgit\mingw\html/lib/open.html">the open manpage
</a>,
<a href=
"file://C|\msysgit\mingw\html/lib/Encode.html">the Encode manpage
</a>,
<a href=
"file://C|\msysgit\mingw\html/pod/perlfunc.html#item_binmode">binmode in the perlfunc manpage
</a>,
<a href=
"file://C|\msysgit\mingw\html/pod/perluniintro.html">the perluniintro manpage
</a></p>
61 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
62 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
63 <big><strong><span class=
"block"> PerlIO::encoding - encoding layer
</span></strong></big>