Skip to content

Commit

Permalink
Write log entries in UTF-8, not Unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jul 25, 2023
1 parent 67f0fdd commit b8e62cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bloxstrap/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8e62cc

Please sign in to comment.