Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One neat thing about UTF-8 is that all bytes that compose non-ASCII characters will have the high bit set. ASCII values range from 0-127, so no ASCII values will ever have the high bit set. Therefore, a byte that corresponds to an ASCII value is guaranteed to be the same character as the corresponding ASCII encoding.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: