Set Console.OutputEncoding to UTF-8 only if current encoding is single byte

This commit is contained in:
de4dot 2011-09-28 01:27:46 +02:00
parent 2094990a93
commit 37be012a11

View File

@ -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);