fix: Update Main.cs to accept utf8 on console (#1639)

This commit is contained in:
Gnai 2023-12-16 05:33:56 -03:00 committed by GitHub
parent 1ab367d637
commit 25a75fdf24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,6 +419,8 @@ public static class Core
public static void Main(string[] args) public static void Main(string[] args)
{ {
Console.OutputEncoding = Encoding.UTF8;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
AppDomain.CurrentDomain.ProcessExit += CurrentDomain_ProcessExit; AppDomain.CurrentDomain.ProcessExit += CurrentDomain_ProcessExit;
AppDomain.CurrentDomain.AssemblyResolve += AssemblyHandler.AssemblyResolver; AppDomain.CurrentDomain.AssemblyResolve += AssemblyHandler.AssemblyResolver;