4.7. String escapes

Viper recognizes the same escapes as Python in strings, with the addition of \uXXXX and \UXXXXXXXX escapes, described below. However, unlike python, unrecognized escapes are an error, rather than being left intact in the string. This is deliberate, since it supports extension while the Python policy guarrantees an extension will create an incompatibility.

escapeencoding
\'single quote
\"double quote
\\slosh (backslash)
\aASCII Bell (BEL)
\bASCII Backspace (BS)
\fASCII Form Feed (FF)
\nASCII Line Feed (LF)
\rASCII Carriage Return (CR)
\tASCII Horizontal Tab (HT)
\vASCII Vertical Tab (VT)
\oooSingle byte with octal value ooo
\xhhh ..Single byte with hex value xxx, modulo 256
\uXXXXISO-10646/UTF-8 short
\UXXXXXXXXISO-10646/UTF-8 long

Bimodal compatibility support is not fully operational yet.
4.7.1. ISO-10646 escapes