pcouderc has asked for the wisdom of the Perl Monks concerning the following question:
On an utf8 linux, I execute :
#!/usr/bin/perl require 5.0022; use strict; use warnings; use utf8; open STDERR,">:utf8","perl.log"; print STDERR "******************* lost.pl (&é'-è_çà) \n"; binmode(STDERR, ":utf8"); print STDERR "******************* lost.pl (&é'-è_çà) \n";
and I "cat perl.log" :
******************* lost.pl (&?'-?_??) ******************* lost.pl (&é'-è_çà)
I do not understand why the 2 lines of result are different.
Thank you, o brave monks to show me the light.
PC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Lost in utf8 (still..)
by choroba (Cardinal) on Jun 09, 2016 at 10:45 UTC | |
by pcouderc (Monk) on Jun 09, 2016 at 11:39 UTC | |
by andal (Hermit) on Jun 10, 2016 at 07:49 UTC | |
by choroba (Cardinal) on Jun 10, 2016 at 08:54 UTC |