-
Notifications
You must be signed in to change notification settings - Fork 513
Problem debugging function with a string parameter to which you send swedish characters in the string #108
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
Comments
What file encoding does VSCode indicate for that file? It should be in the status bar on the right side. And what version of VSCode and the PowerShell extension are you on? |
File encoding: UTF-8 Also tested on the VSCode Insider version: 0.10.10-insider |
Interesting, I just tried to reproduce this and it works fine for me: This is with the shipped 0.10.8 and 0.4.1 versions of VS Code and the PowerShell extension, respectively. Can you try to reproduce this issue again and then send the contents of the following file to [email protected]:
|
I have sent the requested information. |
Weird! Not sure why it would work with UTF-16 and not with UTF-8. Thanks for the update! We'll keep looking into this. |
It would be nice if the plugin would warn when I start writing special chars (f.e. äöü) with UTF8. |
This isn't a problem anymore. I can't reproduce any longer. I guess this started working when we got the PowerShell Integration Console. I forgot about this, and I haven't used Swedish strings in a while so haven't seen it got fixed. 😄 |
A normal function:
Sending a string with Swedish characters gets a string that is corrupt.

Get-Something -Title "Söder Ögon Åder Råd Rädd" -Verbose
This call doesn't work either since it parses the string wrong.

Get-Something -Title "Ängar" -Verbose
The text was updated successfully, but these errors were encountered: