Skip to content

Commit

Permalink
Set console output encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Jul 21, 2020
1 parent 6d188eb commit 5e4c41c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BingImageDownload/ConsoleWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ internal class ConsoleWriter

internal ConsoleWriter(Paths paths)
{
Console.OutputEncoding = Encoding.UTF8;
logWriter = new StreamWriter(Path.Combine(paths.LogPath, $"Log-{DateTime.UtcNow:yyyy-MM-dd}.txt"), false, Encoding.UTF8);

if (tempBuilder.Length > 0)
Expand Down

0 comments on commit 5e4c41c

Please sign in to comment.