Reputation: 86987
Can I output unicode, like the classic deskflip (╯°□°)╯︵ ┻━┻
to the console?
Do I have to set this 'mode' in the cli when i run the script, or could I do some magic in the script itself so the consumers of my script don't need to remember to do anything funky in the CLI?
this is my screenshot ....
Upvotes: 1
Views: 257
Reputation: 95712
This is a limitation of the console rather than a limitation of Powershell. If you use a different Powershell host (e.g. the Powershell ISE) then the output will appear as you expect:
PS C:\> write-host "(╯°□°)╯︵ ┻━┻"
(╯°□°)╯︵ ┻━┻
If you try that in the console window you actually get the same characters output (as you can tell if you copy/paste into something that will display them).
Upvotes: 3