-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Unicode problem?!? in execCommand on Windows #1225
Comments
Is there any progress or solution? |
@shalithasuranga Can you fix this problem? Because it affects the command execution of Windows in non-English environments. // working
console.log(await Neutralino.os.execCommand('node -e "console.log(\'你好世界\')"'))
console.log(await Neutralino.os.spawnProcess('node -e "console.log(\'你好世界\')"'))
// not working (block)
console.log(await Neutralino.os.execCommand('echo 你好世界'))
// not working (panic) (exitcode: 3221226505)
console.log(await Neutralino.os.spawnProcess('echo 你好世界')) The above code shows that the non-English characters output by NodeJS are not affected, so I guess it is because the NodeJS output is UTF-8 encoded, while the Windows cmd output is the system encoding, which is GB2312 in the Chinese environment. |
This is also a show-stopper here in Germany with "äöüÄÖÜß" and France as well ... should be put on top priority. |
And #1207, it also affects working properly in non-English environments. Perhaps a comprehensive investigation of character encoding should be conducted. |
Hi,
This problem only occurs on Windows (not on Linux).
Expected behaviour is that the promise should resolve.
neu CLI: v11.0.1
Neutralinojs binaries: v5.0.0
Neutralinojs client: v5.0.1
Project version: v1.0.0
Thank you in advance,
Best regards
The text was updated successfully, but these errors were encountered: