Skip to content

Commit

Permalink
Fix console encoding (neo-project#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored Aug 3, 2021
1 parent 5d531a4 commit 8c83fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neo.ConsoleService/ConsoleServiceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ public virtual void RunConsole()
catch { }

Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.SetIn(new StreamReader(Console.OpenStandardInput(), Encoding.Default, false, ushort.MaxValue));
Console.SetIn(new StreamReader(Console.OpenStandardInput(), Console.InputEncoding, false, ushort.MaxValue));

while (_running)
{
Expand Down

0 comments on commit 8c83fc3

Please sign in to comment.