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