in reply to Perl character encoding

Intriguing. I see a similar difference:

C:\test>set TEST=abc£ C:\test>echo %TEST% abc£ perl -MWin32::Console -E"say '1:', $ENV{TEST};say Win32::Console::Outp +utCP; system q[perl -MWin32::Console -E\"say '2:', $ENV{TEST}; say Win32::Console::OutputCP;\"]" 1:abcú 850 2:abc£ 850

And the difference seems to be internal to Perl somehow.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"