Install Perl 5.8.8
[msysgit.git] / mingw / html / lib / PerlIO / encoding.html
blob1ae976e4de36648c9ad992a734657760e8210c63
1 <?xml version="1.0" ?>
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">
4 <head>
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:" />
8 </head>
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">&nbsp;PerlIO::encoding - encoding layer</span></strong></big>
14 </td></tr>
15 </table>
17 <p><a name="__index__"></a></p>
18 <!-- INDEX BEGIN -->
20 <ul>
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>
26 </ul>
27 <!-- INDEX END -->
29 <hr />
30 <p>
31 </p>
32 <h1><a name="name">NAME</a></h1>
33 <p>PerlIO::encoding - encoding layer</p>
34 <p>
35 </p>
36 <hr />
37 <h1><a name="synopsis">SYNOPSIS</a></h1>
38 <pre>
39 open($f, &quot;&lt;:encoding(foo)&quot;, &quot;infoo&quot;);
40 open($f, &quot;&gt;:encoding(bar)&quot;, &quot;outbar&quot;);</pre>
41 <pre>
42 use Encode qw(:fallbacks);
43 $PerlIO::encoding::fallback = FB_PERLQQ;</pre>
44 <p>
45 </p>
46 <hr />
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>
55 and decode().</p>
56 <p>
57 </p>
58 <hr />
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">&nbsp;PerlIO::encoding - encoding layer</span></strong></big>
64 </td></tr>
65 </table>
67 </body>
69 </html>