mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Fix -EncodedCommand implementation
PowerShell uses Encoding.Unicode, which is different from Encoding.UTF8.
This commit is contained in:
1 parent
019b44b1ca
commit
5fee08a097
1 file changed
+1
-1
@@ -146,7 +146,7 @@ OPTIONS
|
||||
break;
|
||||
case Options.EncodedCommand:
|
||||
byte[] data = Convert.FromBase64String(nextArg);
|
||||
initialScript = Encoding.UTF8.GetString(data);
|
||||
initialScript = Encoding.Unicode.GetString(data);
|
||||
++i;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user