Re: Unicode on Windows Console

[email protected] (Michael Ludwig) Wed, 11 Jan 2012 23:55:08 +0100
Newsgroups perl.unicode
Message-ID <20120111225507.GB844@Dago>
Michael Ludwig schrieb am 07.01.2012 um 18:30 (+0100):
> There's a WinAPI function that sets stdout to Unicode so you can
> read Cyrillic and Greek characters in the cmd.exe console window:

> Can I get the same feature in Perl?

Yes: https://metacpan.org/module/Win32::Unicode

Printing twelve hearts:

perl -MWin32::Unicode -lwe "printW qq( \x{2665}) x 12"

 ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥

-- 
Michael Ludwig