Print a warning and use default encoding if the code page doesn't exist
This commit is contained in:
parent
8a81e98b3f
commit
c8477bdbce
|
@ -146,7 +146,8 @@ namespace de4dot.code.deobfuscators.MaxtoCode {
|
||||||
return Encoding.GetEncoding(cp);
|
return Encoding.GetEncoding(cp);
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
throw new UserException(string.Format("Code page {0} doesn't exist", cp));
|
Log.w("Invalid code page {0}!", cp);
|
||||||
|
return Encoding.Default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user