0
4

1 回答 1

1

Based on @PetSerAl responses I did need to save the file as UTF8 with BOM.

I am also able to remove Console]::OutputEncoding = [System.Text.Encoding]::UTF8 from my Microsoft.PowerShell_profile.ps1. Now my Microsoft.PowerShell_profile.ps1 looks like:

function prompt
{
    Write-Host "➜"  -nonewline -foregroundcolor Magenta 
}
于 2017-06-04T02:43:36.540 回答