diff options
author | Tels <nospam-abuse@bloodgate.com> | 2007-03-02 11:31:39 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-03-06 11:10:26 +0000 |
commit | 6902c96abfac199dee031c2d64ebdf840b87fa4d (patch) | |
tree | c0ac7aa3b7ad21378104af5f8bb99d4be39c9704 /pod | |
parent | 73f68b39467596f862aade4f4b46d6061aa98bd3 (diff) | |
download | perl-6902c96abfac199dee031c2d64ebdf840b87fa4d.tar.gz |
Doc patch about PerlIO::encoding:
Subject: [PATCH] Re: 'Unknown PerlIO layer "encoding"...' message
Message-Id: <200703021131.41085@bloodgate.com>
p4raw-id: //depot/perl@30484
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 67e8c1e762..3e2c57a5af 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -542,7 +542,10 @@ functionality has moved from "discipline" to "layer". All documentation of this version of Perl therefore refers to "layers" rather than to "disciplines". Now back to the regularly scheduled documentation...> -To mark FILEHANDLE as UTF-8, use C<:utf8>. +To mark FILEHANDLE as UTF-8, use C<:utf8> or C<:encoding(utf8)>. +C<:utf8> just marks the data as UTF-8 without further checking, +while C<:encoding(utf8)> checks the data for actually being valid +UTF-8. More details can be found in L<PerlIO::encoding>. In general, binmode() should be called after open() but before any I/O is done on the filehandle. Calling binmode() will normally flush any |