On Thu, 29 Nov 2012 06:08:52 -0800 Charles DeRykus <dery...@gmail.com> wrote:
> Hmm, why is that different? In 5.14 at least it makes no > difference. > > Both: binmode(STDOUT, ":utf8"); > and: binmode STDOUT,':encoding(UTF-8)'; The second one validates the output to ensure all characters are valid UTF-8 ones. It is the recommended method. Also, you could try this: use encoding qw( utf8 ); This allows you to use UTF-8 characters for identifiers in your scripts, sets all strings to UTF-8, and sets the default filter of all I/O to `encoding(UTF-8)`. -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. Why fit in when you can stand out? Dr. Seuss The only way that problems get solved in real life is with a lot of hard work on getting the details right. Linus Torvalds -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/