in reply to Re^3: Character encoding in console in Windows
in thread Character encoding in console in Windows
Now how do you get those code pages?
using chcp?
c:\test>chcp && perl -E" say `chcp`; say `chcp 437`; say`chcp`" && chc +p Active code page: 850 Active code page: 850 Active code page: 437 Active code page: 437 Active code page: 437
Alternatively, Win32::Console:
InputCP [codepage] Gets or sets the input code page used by the console. Note that this d +oesn't apply to a console object, but to the standard input console. +This attribute is used by the Write method. See also: OutputCP. Example: $codepage = $CONSOLE->InputCP(); $CONSOLE->InputCP(437); # you may want to use the non-instanciated form to avoid confuzion + :) $codepage = Win32::Console::InputCP(); Win32::Console::InputCP(437);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Character encoding in console in Windows
by ikegami (Patriarch) on Sep 16, 2010 at 13:23 UTC | |
|
Re^5: Character encoding in console in Windows
by elef (Friar) on Sep 16, 2010 at 18:16 UTC | |
by ikegami (Patriarch) on Sep 18, 2010 at 01:49 UTC | |
by elef (Friar) on Sep 18, 2010 at 08:16 UTC |