Skip to content

Commit

Permalink
try to use utf8 encoding for output on systems where legacy ansi cp i…
Browse files Browse the repository at this point in the history
…s used
  • Loading branch information
13xforever committed Feb 29, 2024
1 parent 6a73a2b commit 14972dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VkDiag/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Net.Http;
using System.Net.Http.Headers;
using System.Security.Principal;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using Mono.Options;
Expand All @@ -14,7 +15,7 @@ namespace VkDiag;

internal static partial class Program
{
private const string VkDiagVersion = "1.3.0";
private const string VkDiagVersion = "1.3.1";

private static bool isAdmin = false;
private static bool autofix = false;
Expand All @@ -41,6 +42,7 @@ public static async Task Main(string[] args)
Console.WindowWidth = Math.Min(Console.LargestWindowWidth, 100);
Console.WindowHeight = Math.Min(Console.LargestWindowHeight, 60);
Console.BufferWidth = Console.WindowWidth;
Console.OutputEncoding = Encoding.UTF8;
}
catch {}

Expand Down

0 comments on commit 14972dd

Please sign in to comment.