From b8e62cc683c7e56313de528ed9ab69cac70d3da4 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Tue, 25 Jul 2023 21:45:35 +0100 Subject: [PATCH] Write log entries in UTF-8, not Unicode --- Bloxstrap/Logger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bloxstrap/Logger.cs b/Bloxstrap/Logger.cs index 7de6a72f..bfc545f9 100644 --- a/Bloxstrap/Logger.cs +++ b/Bloxstrap/Logger.cs @@ -96,7 +96,7 @@ private async void WriteToLog(string message) try { await _semaphore.WaitAsync(); - await _filestream!.WriteAsync(Encoding.Unicode.GetBytes($"{message}\r\n")); + await _filestream!.WriteAsync(Encoding.UTF8.GetBytes($"{message}\r\n")); await _filestream.FlushAsync(); } finally