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>Thumbs up: π</p><p>Brazil: π§π·</p><!-- Code point to code point (base 10) --><p>Letter: A</p><p>Pound: £</p><p>Ball: ⚽</p><p>Thumbs up: 👍</p><p>Brazil: 🇧🇷</p><!-- Code point to code point (base 16) --><p>Letter: A</p><p>Pound: £</p><p>Ball: ⚽</p><p>Thumbs up: 👍</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/?thumbs_up=%F0%9F%91%8D
https://example.com/?brazil=%F0%9F%87%A7%F0%9F%87%B7
// Directlyletletter='A';letpound='Β£';letball='β½';letthumbsUp='π';letbrazil='π§π·';// Byte to byte (UTF-16BE)letletter='\u0041';letpound='\u00A3';letball='\u26BD';letthumbsUp='\uD83D\uDC4D';letbrazil='\uD83C\uDDE7\uD83C\uDDF7';// Byte to byte (UTF-8)constdecoder=newTextDecoder('UTF-8');letletter=decoder.decode(newUint8Array([0x41]));letpound=decoder.decode(newUint8Array([0xC2,0xA3]));letball=decoder.decode(newUint8Array([0xE2,0x9A,0xBD]));letthumbsUp=decoder.decode(newUint8Array([0xF0,0x9F,0x91,0x8D]));letbrazil=decoder.decode(newUint8Array([0xF0,0x9F,0x87,0xA7,0xF0,0x9F,0x87,0xB7]));// Code point to code pointletletter='\u{0041}';letpound='\u{00A3}';letball='\u{26BD}';letthumbsUp='\u{1F44D}';letbrazil='\u{1F1E7}\u{1F1F7}';
Python
# Directlyletter='A'pound='Β£'ball='β½'thumbs_up='π'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')
thumbs_up=b"\xF0\x9F\x91\x8D".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"thumbs_up="\U0001F44D"brazil="\U0001F1E7\U0001F1F7"
Bash
# Directly
letter='A'
pound='Β£'
ball='β½'
thumbs_up='π'
brazil='π§π·'# Byte to byte (UTF-8)
letter=$'\x41'
pound=$'\xC2\xA3'
ball=$'\xE2\x9A\xBD'
thumbs_up=$'\xF0\x9F\x91\x8D'
brazil=$'\xF0\x9F\x87\xA7\xF0\x9F\x87\xB7'# Code point to code point
letter=$'\u0041'
pound=$'\u00A3'
ball=$'\u26BD'
thumbs_up=$'\U0001F44D'
brazil=$'\U0001F1E7\U0001F1F7'