Skip to content

Instantly share code, notes, and snippets.

@patch
Last active December 25, 2015 17:29
Show Gist options
  • Save patch/7013741 to your computer and use it in GitHub Desktop.
Save patch/7013741 to your computer and use it in GitHub Desktop.
escape sequences
language 2-hex 4-hex n-hex non-BMP 3-oct n-oct ctrl name seq
C# - \u03C0 \x3C0 \U0001F4A9 \241 - \cD - -
Go \xF1 \u03C0 - \U0001F4A9 \241 - - - -
ICU \xF1 \u03C0 \x{3C0} \U0001F4A9 \0241 - \cD \N{ARABIC KASRA} -
Java \xF1 \u03C0 \x{3C0} \x{1F4A9} \0241 - \cD - -
JavaScript \xF1 \u03C0 - \uD83D\uDCA9 \241 - \cD - -
JSON - \u03C0 - \uD83D\uDCA9 - - - - -
PCRE \xF1 \u03C0 \x{3C0} \x{1F4A9} \241 - \cD - -
Perl \xF1 - \x{3C0} \N{U+03C0} \x{1F4A9} \N{U+1F4A9} \241 \o{1700} \cD \N{ARABIC KASRA} -
Perl 6 - \x03C0 \x[3C0] \x[1F4A9] - \o[1700] \cD \c[ARABIC KASRA] \x[F1, 3C0] \c[ARABIC LETTER DAL, ARABIC KASRA] \c[1583, 1616]
PHP \xF1 - - - \241 - - - -
Python \xF1 \u03C0 - \U0001F4A9 \241 - - \N{ARABIC KASRA} -
re2 \xF1 - \x{3C0} \x{1F4A9} \241 - - - -
Ruby \xF1 \u03C0 \u{3C0} \u{1F4A9} \241 - \cD \C-D - \u{F1 3C0}
Unicode - - \u{3C0} \u{1F4A9} - - - \N{ARABIC KASRA} \u{F1 3C0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment