Follow

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: 🐕‍🦺

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.