Specify UTF-8 without BOM to fix Discord's text rendering

This commit is contained in:
Unnoen 2021-04-23 15:28:20 +10:00
parent b0eb876460
commit 563de77205
No known key found for this signature in database
GPG Key ID: 8F8E42252BA20553

View File

@ -126,7 +126,7 @@ namespace Wabbajack.Common
if (!LoggingSettings.LogToFile || LogFile == default) return;
lock (_logLock)
{
File.AppendAllText(LogFile.ToString(), $"{(DateTime.Now - _startTime).TotalSeconds:0.##} - {msg}\r\n");
File.AppendAllText(LogFile.ToString(), $"{(DateTime.Now - _startTime).TotalSeconds:0.##} - {msg}\r\n", new UTF8Encoding(false, true));
}
}