Pure.Krome
Pure.Krome

Reputation: 86987

Can a powershell script output a (╯°□°)╯︵ ┻━┻ to the console?

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 ....

enter image description here

Upvotes: 1

Views: 257

Answers (1)

Duncan
Duncan

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

Related Questions