You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Directly --><p>Letter: A</p><p>Pound: £</p><p>Ball: ⚽</p><p>Brazil: 🇧🇷</p><!-- Code point to code point (base 10) --><p>Letter: A</p><p>Pound: £</p><p>Ball: ⚽</p><p>Brazil: 🇧🇷</p><!-- Code point to code point (base 16) --><p>Letter: A</p><p>Pound: £</p><p>Ball: ⚽</p><p>Brazil: 🇧🇷</p><!-- Alias (only a few code points) --><p>Pound: £</p>
# Byte to byte (UTF-8)
https://example.com/?letter=A
https://example.com/?letter=%41 # <-- No need to escape the "A" to "%41"
https://example.com/?pound=%C2%A3
https://example.com/?ball=%E2%9A%BD
https://example.com/?brazil=%F0%9F%87%A7%F0%9F%87%B7
// Directlyletletter='A';letpound='£';letball='⚽';letbrazil='🇧🇷';// Byte to byte (UTF-16BE)letletter='\u0041';letpound='\u00A3';letball='\u26BD';letbrazil='\uD83C\uDDE7\uD83C\uDDF7';
Python
# Directlyletter='A'pound='£'ball='⚽'brazil='🇧🇷'# Byte to byte (UTF-8)letter=b"\x41".decode('utf-8')
pound=b"\xC2\xA3".decode('utf-8')
ball=b"\xE2\x9A\xBD".decode('utf-8')
brazil=b"\xF0\x9F\x87\xA7\xF0\x9F\x87\xB7".decode('utf-8')
# Code point to code pointletter="\u0041"pound="\u00A3"ball="\u26BD"brazil="\U0001F1E7\U0001F1F7"
Bash
# Directly
letter='A'
pound='£'
ball='⚽'
brazil='🇧🇷'# Byte to byte (UTF-8)
letter=$'\x41'
pound=$'\xC2\xA3'
ball=$'\xE2\x9A\xBD'
brazil=$'\xF0\x9F\x87\xA7\xF0\x9F\x87\xB7'# Code point to code point
letter=$'\u0041'
pound=$'\u00A3'
ball=$'\u26BD'
brazil=$'\U0001F1E7\U0001F1F7'