in reply to Outputting Unicode to DOS

What output do you get? On Perl 5.22 under Darwin (Mac OSX) your code produces:

Use of the encoding pragma is deprecated at 1140209.pl line 8. abc123äöüß

On the other hand this code:

#! perl my $str = "abc123äöüß"; print $str;
outputs as follows:
$ perl 1140209.pl abc123äöüß

The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Outputting Unicode to DOS
by thekestrel (Friar) on Aug 28, 2015 at 06:36 UTC
    Hi, I was getting the following output: abc123├ñ├Â├╝├ƒ I was able to fix it with the other comments I read, I wasn't familiar with the codepage.