On Fri, 11 Apr 2003 15:53:11 +0100
David J Craigon <david(_at_)arabidopsis(_dot_)info> wrote:
Sorry, this may be a totally obvious question, but I've looked hard at
the docs...
How do I find which encoding a filehandle is using. I know I can do:
open (my $fh,"<:encoding(EUC-JP)","fred");
say, but is there a way I can tell (say) EUC-JP if I've been given $fh?
binmode($fh, ":encoding(EUC-JP)");
Refer to this please.
http://www.perldoc.com/perl5.8.0/pod/perluniintro.html#Unicode-I-O
SADAHIRO Tomoyuki