All PowerShell versions
When you run a console application inside the ISE editor, non-standard characters such as “ä” or “ß” do not show correctly in results. To correct the encoding ISE uses to communicate with its hidden console, run this:
# Repair encoding. This REQUIRES a console app to run first because only # then will ISE actually create its hidden background console $null = cmd.exe /c echo [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 # Now all is fine cmd.exe /c echo ÄÖÜäöüß