rmflow has asked for the wisdom of the Perl Monks concerning the following question:
When I run this script I see the garbage, but if I remove binmode line:#!/usr/bin/perl binmode STDOUT, ':utf8'; print "Çirçös\n";
then 'Çirçös' is printed correctly. Since my console is already in utf-8, I expected correct output both times. What could be wrong here?#!/usr/bin/perl print "Çirçös\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: clarification on binmode STDOUT
by moritz (Cardinal) on Jul 01, 2009 at 14:15 UTC | |
by rmflow (Beadle) on Jul 01, 2009 at 14:53 UTC | |
|
Re: clarification on binmode STDOUT
by ikegami (Patriarch) on Jul 01, 2009 at 17:51 UTC | |
|
Re: clarification on binmode STDOUT
by Anonymous Monk on Jul 01, 2009 at 14:12 UTC | |
by Anonymous Monk on Jul 01, 2009 at 14:26 UTC | |
|
Re: clarification on binmode STDOUT
by Anonymous Monk on Jul 01, 2009 at 14:11 UTC |