Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stderr- and stdout-Encoding are not respected #10

Open
upeuker opened this issue Jul 12, 2017 · 3 comments
Open

Stderr- and stdout-Encoding are not respected #10

upeuker opened this issue Jul 12, 2017 · 3 comments

Comments

@upeuker
Copy link

upeuker commented Jul 12, 2017

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?

@profesorfalken
Copy link
Owner

profesorfalken commented Oct 22, 2017

Hello,

I have updated the jPowerShell dependency from 1.7 => 1.9. In 1.8 version a problem with the encoding was solved.
Try with 1.6.1

Best regards

@sergeir82
Copy link

Hello!
I made pull request yesterday that may solve this problem #12 . I can make pull request to master instead development branch.

Happy New Year!

@weekens
Copy link

weekens commented Jan 10, 2019

Hi! Any update on this? I've tested @sergeir82 PR and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants