Problem with umlauts ÄÖÜ and UTF8

Posted by wuerger on 2018-04-14 19:26
#!C:\Perl64\bin\perl.exe
use utf8;
use diagnostics;

binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");

print "ÄÖÜ\n";

print "Perl Version: $]\n";
print "Perl executable: $^X\n";

The result is

?ä?û?£
Perl Version: 5.024003
Perl executable: C:\Perl64\bin\perl.exe

It works well with Cygwin, but not with Active Perl on Windows 10.

What is wrong there?
Why does it not work?

Thank you!

AttachmentSize
result-ÄÖÜ.png2.79 KB