SOLVED

Powershell changes all umlauts in the scripts

Iron Contributor

If there are any umlauts in the scripts for example from file paths, the Powershell changes them with other characters and the corrects paths cannot be found. How can I solve this?

2 Replies
best response confirmed by AtanasM (Iron Contributor)
Solution
Does this work when putting this in the top section of your script? [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)

(https://forum.checkmk.com/t/umlauts-and-double-quotes-in-local-powershell-script/27445)
Did this fix your issue?
1 best response

Accepted Solutions
best response confirmed by AtanasM (Iron Contributor)
Solution
Does this work when putting this in the top section of your script? [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)

(https://forum.checkmk.com/t/umlauts-and-double-quotes-in-local-powershell-script/27445)

View solution in original post