-
Notifications
You must be signed in to change notification settings - Fork 71
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
Non-Latin Characters Garbled #132
Comments
Apparently PowerShell is receiving
|
@cawoodm Hi, do you have a solution or workaround for this problem yet? In the latest version, the problem is still present. |
Nope, I gave up on this library 🤷♂️ and went for https://github.com/cawoodm/powowshell/blob/master/ide/package.json |
@cawoodm I am using node-powershell v5.0.1. And I am not familiar with using profiles for PowerShell. But now I was able to solve my problem by removing noProfile from PS-Config. But I'm not sure that's a good idea. Anyway, "Bär" is now displayed as a "Bär" and no longer as "B├ñr". :-) |
It seems characters like
ä
orü
are incorrectly encoded in the resulting javascript string.PowerShell Script foo.ps1
echo "bär"
Node-PowerShell
Result:
As you can see the buffer is mangled to
bär
:At the utils.js level we see the UTF-8 Replacement characters:
The text was updated successfully, but these errors were encountered: