Re: Use of encoding/decoding and 3-param open
[email protected] (Juerd Waalboer) Thu, 15 Nov 2007 15:06:12 +0100
| Newsgroups | perl.unicode |
|---|---|
| Message-ID | <[email protected]> |
Paul Bijnens skribis 2007-11-15 14:52 (+0100): > Can you elaborate more on the subtle difference between: > binmode(STDIN, ":utf8"); > binmode(STDIN, ":encoding(UTF-8)"); http://search.cpan.org/~rgarcia/perl-5.9.5/pod/perlunifaq.pod#Cheat?!_Tell_me,_how_can_I_cheat? http://www.perlmonks.org/?node_id=644786 > For input, both get the correct characters, assuming the input > bytestream was indeed correct. Yes, but if the bytestream is incorrect, you may have a security issue if you used :utf8 instead of :encoding. -- Met vriendelijke groet, Kind regards, Korajn salutojn, Juerd Waalboer: Perl hacker <#####@juerd.nl> <http://juerd.nl/sig> Convolution: ICT solutions and consultancy <[email protected]>