3

Goal:

I am attempting to use UTF-8 characters in my code. However they are not rendering correctly in powershell.

For example:

function Go-Left{
Write-Host '⏩Left'
}

PS > Go-Left

Problem:

This will print 'Left', but it also replaces ⏩ with a box that contains a question mark. Which is a generic character for displaying an 'unrenderable character'.

Question:

Is there any way to display these characters in powershell?

Alexander Sinno
  • 554
  • 5
  • 24
  • 1
    Related - https://stackoverflow.com/questions/379240/is-there-a-windows-command-shell-that-will-display-unicode-characters I would mark as a dupe but it would appear that the answer is "Use Powershell 2.0+" which I assume you are already doing so guessing I'm missing something. – Mike Garuccio Dec 28 '16 at 21:37
  • 2
    Works in ISE but not console : http://stackoverflow.com/questions/5796339/printing-unicode-characters-to-powershell-prompt – sodawillow Dec 28 '16 at 21:46
  • 1
    Deleted my answer because @sodawillow 's link says basically the same thing. – briantist Dec 28 '16 at 21:52

0 Answers0