Skip to content

Stderr- and stdout-Encoding are not respected #10

@upeuker

Description

@upeuker

In WMIVBScript#executeScript the encoding of the input from stdout and stderr will not be respected.
This will lead to a problem with german "umlauts" or possibly with characters used in the commandline of an process.
As an example you will not found a process searching for this parameter in the commandline args.

The InputStreamReaders for stderr and stdout should be explicit initialized with the definied encoding for the windows environment (for Oracle Java it could be found in the env-Properties "sun.stdout.encoding" or "sun.stderr.encoding".
I don't know if an default value of "cp850" oder "IBM850" would fit for every windows system?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions