in reply to
Re: Issue of formatting columns of data
in thread
Issue of formatting columns of data
Any of these would work:
binmode STDOUT, "encoding(UTF-8)"
binmode STDOUT, ":utf8"
use open qw(:std :utf8);
perl -C your_script
Comment on
Re^2: Issue of formatting columns of data
Replies are listed 'Best First'.
Re^3: Issue of formatting columns of data
by
Tux
(Canon)
on Sep 26, 2024 at 07:58 UTC
*please* do
NOT
promote
binmode ..., ":utf8";
, as that is unsafe
The
:encoding(utf-8)"
is missing a
:
perl -C
is for output only (I'd use
-COE
for clarity), not for the source code. UTF-8 in source code requires
perl -COE -Mutf8 -wE'say "°C"'
Enjoy, Have FUN! H.Merijn
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom