r/PowerShell • u/sup3rmark • Mar 15 '16
¯\_(ツ)_/¯
function Get-AsciiShrug {
$OutputEncoding = [System.Text.Encoding]::unicode
write-output "¯_($(0x30C4|%{[char]$_}))_/¯" | clip
}
144
Upvotes
r/PowerShell • u/sup3rmark • Mar 15 '16
function Get-AsciiShrug {
$OutputEncoding = [System.Text.Encoding]::unicode
write-output "¯_($(0x30C4|%{[char]$_}))_/¯" | clip
}
3
u/tehjimmeh Mar 16 '16 edited Mar 16 '16
If you save the file as UTF8 (default ISE encoding, AFAIK), you can just do:
In ConEmu with the UTF8 codepage (chcp 65001) and Consolas font, the face displays. Not in the command prompt though (weird, seems like it should work there too).
Also, it's amusing how "ASCII" has gained a colloquial meaning of "non-standard characters". This example is very much not ASCII :)