Skip to content

Commit

Permalink
set console encoding to utf-8
Browse files Browse the repository at this point in the history
make ANSI console that does not have simplified chinese characters display correctly
  • Loading branch information
MIRIMIRIM committed Jan 10, 2024
1 parent 6c8efc7 commit 8f1449c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OKP.Core/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static void Main(string[] args)
rollOnFileSizeLimit: true)
.CreateLogger();
IOHelper.NoReaction = o.NoReaction;
Console.OutputEncoding = System.Text.Encoding.UTF8;
if (o.TorrentFile is null)
{
Log.Fatal("o.TorrentFile is null");
Expand Down

0 comments on commit 8f1449c

Please sign in to comment.