OCaml friends: How many characters does this print? (It's valid UTF-8 and valid Unicode)

print_endline "\xF0\x9F\x90\x95\xE2\x80\x8D\xF0\x9F\xA6\xBA";;

It's a trick question for Unicode awareness. It should show a service dog emoji but in my console, I see a dog followed by an orange vest. Here it is: πŸ•β€πŸ¦Ί

Β· Β· 0 Β· 0 Β· 0
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.