Set Console.OutputEncoding to UTF-8 only if current encoding is single byte
This commit is contained in:
parent
37be012a11
commit
828a69fef7
|
@ -68,7 +68,8 @@ namespace dumpMethods {
|
||||||
delegate void CallCctor();
|
delegate void CallCctor();
|
||||||
static int Main(string[] args) {
|
static int Main(string[] args) {
|
||||||
try {
|
try {
|
||||||
Console.OutputEncoding = new UTF8Encoding(false);
|
if (Console.OutputEncoding.IsSingleByte)
|
||||||
|
Console.OutputEncoding = new UTF8Encoding(false);
|
||||||
|
|
||||||
var files = parseCommandLine(args);
|
var files = parseCommandLine(args);
|
||||||
if (files.Count != 1)
|
if (files.Count != 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user