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  <[EMAIL PROTECTED]>  <http://juerd.nl/sig>
  Convolution:     ICT solutions and consultancy <[EMAIL PROTECTED]>

Reply via email to