Skip to content

Instantly share code, notes, and snippets.

@matarillo
Created July 4, 2022 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matarillo/f978a67e0e2b5eb9838946007dd77e04 to your computer and use it in GitHub Desktop.
Save matarillo/f978a67e0e2b5eb9838946007dd77e04 to your computer and use it in GitHub Desktop.
現在のコード ページ: 932
Console.OutputEncoding is System.Text.OSEncoding
Microsoft ? OSS
// See https://aka.ms/new-console-template for more information
var p = System.Diagnostics.Process.Start(@"C:\Windows\System32\chcp.com");
p.OutputDataReceived += (s, e) => Console.WriteLine(e.Data);
p.WaitForExit();
Console.WriteLine($"Console.OutputEncoding is {Console.OutputEncoding}");
Console.WriteLine("Microsoft ❤ OSS");
Console.ReadKey();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment