【修复】解决Luban.Server和Luban.Client在非大陆地区运行错误日志乱码的问题

main
walon 2021-07-29 15:03:53 +08:00
parent e63220be9f
commit 75cc8e969f
2 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,8 @@ Options:
static void Main(string[] args) static void Main(string[] args)
{ {
Console.OutputEncoding = System.Text.Encoding.UTF8;
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
var profile = new ProfileTimer(); var profile = new ProfileTimer();
profile.StartPhase("all"); profile.StartPhase("all");

View File

@ -37,6 +37,8 @@ namespace Luban.Server
static void Main(string[] args) static void Main(string[] args)
{ {
Console.OutputEncoding = System.Text.Encoding.UTF8;
var options = ParseOptions(args); var options = ParseOptions(args);
Luban.Common.Utils.LogUtil.InitSimpleNLogConfigure(NLog.LogLevel.Info); Luban.Common.Utils.LogUtil.InitSimpleNLogConfigure(NLog.LogLevel.Info);