Skip to content

Characters like "ä/ü/ö" don't get saved right #3010

Closed
@modzilla99

Description

@modzilla99

System Details

Windows 10 Pro 2004
VSCode 1.50.0
ms-vscode.powershell@2020.6.0

System Details Output

### VSCode version: 1.50.0 93c2f0fbf16c5a4b10e4d5f89737d9c2c25488a3 x64

### VSCode extensions:
foxundermoon.shell-format@7.0.1
ms-azuretools.vscode-docker@1.6.0
ms-dotnettools.vscode-dotnet-runtime@0.1.2
ms-vscode-remote.remote-ssh@0.55.0
ms-vscode-remote.remote-ssh-edit@0.55.0
ms-vscode-remote.remote-wsl@0.50.0
ms-vscode.powershell@2020.6.0
msazurermtools.azurerm-vscode-tools@0.13.0


### PSES version:

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.19041.546
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.546
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

When writing characters like ä,ü,ö and saving the file, those characters will become corrupted. If you then open the file in PS IDE you can see it, even though they're still displayed fine in vscode (even after reopening). When replacing them in PS IDE they'll be replaced with � in vscode. Butt executing the script shows that they are set correctly now. I attached 2 powershell documents to show it off, one's been edited with powershell IDE and one with vscode.

Expected Behaviour

Saving the file won't result in ä,ö,ü getting replaced by different characters

Actual Behaviour

'ä' for eg. will be replaced by 'ä' and 'Ä' with 'Ä'. The latter is obviously particularly bad as it hinders your script from running.

Attached Logs

Powershell-Logs.zip
Saved-Scripts.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions