diff --git a/packages/powershell/oh-my-posh/oh-my-posh.psm1 b/packages/powershell/oh-my-posh/oh-my-posh.psm1 index 4a98de46c5bb..95b0cdf25973 100644 --- a/packages/powershell/oh-my-posh/oh-my-posh.psm1 +++ b/packages/powershell/oh-my-posh/oh-my-posh.psm1 @@ -3,6 +3,10 @@ Generates the prompt before each line in the console #> +# Powershell doesn't default to UTF8 just yet, so we're forcing it as there are too many problems +# that pop up when we don't +[console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding + function Get-PoshCommand { if ($IsMacOS) { return "$PSScriptRoot/bin/posh-darwin-amd64"