ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



PerlIO::encoding(3pm)                 Perl Programmers Reference Guide                 PerlIO::encoding(3pm)



NAME
       PerlIO::encoding - encoding layer

SYNOPSIS
         open($f, "<:encoding(foo)", "infoo");
         open($f, ">:encoding(bar)", "outbar");

         use Encode qw(:fallbacks);
         $PerlIO::encoding::fallback = FB_PERLQQ;

DESCRIPTION
       Open a filehandle with a transparent encoding filter.

       On input, convert the bytes expected to be in the specified character set and encoding to Perl string
       data (Unicode and Perl's internal Unicode encoding, UTF-8).  On output, convert Perl string data into
       the specified character set and encoding.

       When the layer is pushed the current value of $PerlIO::encoding::fallback is saved and used as the
       CHECK argument when calling the Encode methods encode() and decode().

SEE ALSO
       open, Encode, "binmode" in perlfunc, perluniintro



perl v5.8.8                                      2001-09-21                            PerlIO::encoding(3pm)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.