I have a problem with the Perl and Encoding pragmas.
(I use utf-8 everywhere, on input, on output, perl scripts themselves. I do not want to use another encoding ever.)
But. When I write
binmode(STDOUT, ':utf8'); use utf8; $r = "\x{ed}"; print $r;
I see the line Γ "(this is what I want - and what is U + 00ED unicode char). But when I add the pragma" use encoding "like this
binmode(STDOUT, ':utf8'); use utf8; use encoding 'utf8'; $r = "\x{ed}"; print $r;
all i see is a window symbol. Why?
Also, when I add Data :: Dumper and the daemon prints a new line like this
binmode(STDOUT, ':utf8'); use utf8; use encoding 'utf8'; $r = "\x{ed}"; use Data::Dumper; print Dumper($r);
I see that perl changed the line to "\x{fffd}" . Why?
Karel bΓlek
source share