PowerShell: Escape Characters

By Xah Lee. Date: .

These sequence of characters have special meaning when inside double quoted string.

`fForm feed
`nNew line
`rCarriage return
`tHorizontal tab
`u{h}Unicode. h is 1 to 6 digits of the character's codepoint in hexadecimal
`vVertical tab

see ASCII Characters

example of a emoji:

# 😃
# codepoint decimal 128515
# codepoint hexadecimal 1f603

"😃" -eq "`u{1F603}"
# true

PowerShell String