Set Console.OutputEncoding to UTF-8 only if current encoding is single byte
This commit is contained in:
parent
2094990a93
commit
37be012a11
|
@ -40,7 +40,8 @@ namespace de4dot {
|
|||
Utils.startUpArch = startUpArch;
|
||||
|
||||
try {
|
||||
Console.OutputEncoding = new UTF8Encoding(false);
|
||||
if (Console.OutputEncoding.IsSingleByte)
|
||||
Console.OutputEncoding = new UTF8Encoding(false);
|
||||
|
||||
Log.n("");
|
||||
Log.n("de4dot v{0} (BETA) Copyright (C) 2011 de4dot@gmail.com", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
|
|
Loading…
Reference in New Issue
Block a user