PowerShell icon indicating copy to clipboard operation
PowerShell copied to clipboard

Console output to support Unicode

Open stephen147 opened this issue 4 years ago • 2 comments

Is it possible to change a setting that will output to the console when building such characters?

Write-Host "Mac'IllÌosa, what 👨‍👩‍👦 is this?' 👨‍👩‍👦 😹🤗"

In the console I get this:

Mac'Ill�Oosa, what �Y'��??�Y'��??�Y'� is this?' �Y'��??�Y'��??�Y'� �Y~��Y�-

stephen147 avatar Apr 23 '21 10:04 stephen147

I am having the same type of problems made another issue about it #170

One simple solution is to enable UTF-8 in Windows.

Open intl.cpl and click the UTF-8 button under Change system locale...

image

ingfors avatar Oct 31 '22 21:10 ingfors