Created
July 8, 2021 07:45
-
-
Save Santaro255/acce5deb33ecdddaefa994fe7fa039be to your computer and use it in GitHub Desktop.
Cyrilic letters with chcp 866
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -Namespace Win32 -Name Kernel32 -MemberDefinition @' | |
[DllImport("Kernel32.dll", SetLastError=true)] | |
public static extern bool AllocConsole(); | |
'@ | |
[void][Win32.Kernel32]::AllocConsole() | |
[Console]::OutputEncoding = [Text.Encoding]::GetEncoding(866) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment