Not the charset of remote command output, and never was: CodeSet is the
remote machine's ANSI code page, while cmd.exe writes its output in
the console (OEM) code page — the two differ on every non-English locale.
Command output is now decoded with
WindowsRemoteExecutor.SHELL_OUTPUT_CHARSET, the code page the remote shell
is created with. Use this method only to decode data that a Windows application
genuinely wrote in the ANSI code page.
CodeSetis the remote machine's ANSI code page, whilecmd.exewrites its output in the console (OEM) code page — the two differ on every non-English locale. Command output is now decoded withWindowsRemoteExecutor.SHELL_OUTPUT_CHARSET, the code page the remote shell is created with. Use this method only to decode data that a Windows application genuinely wrote in the ANSI code page.