I would like to display a Unicode Emoji like U+1F4A9 in PowerShell. I know this works only inside the ISE console but I don't know how.
What I tried so far:
$CharBytes = [System.Text.Encoding]::Unicode.GetBytes("")
This will return 61, 216, 169, 220. But this can not be the representation of 0x1F4A9?
When I try
[BitConverter]::GetBytes(0x1F4A9)
I'll get a different set of Bytes: 169, 244, 1, 0. Converting them into a Unicode char results to a
So my question is: How can I display any Unicode char in PowerShell ISE (and may be in the console window too)?