Name

OutputCP

Synopsis

$cons ->OutputCP([codepage])

Description

Gets or sets the output code page used by the console. Note that this doesn’t apply to a console object, but to the standard output console. You may want to use the non-instantiated form to avoid confusion:

$codepage = Win32::Console::OutputCP();
Win32::Console::OutputCP(437);

Get Perl in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.