Hacker News new | ask | show | jobs
by jcranmer 3399 days ago
Additionally, 110xxxxx tells you that the character is two bytes, 1110xxxx three bytes, and 11110xxx four bytes, i.e., number of bytes in number = leading 1 count.