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

There’s nothing wrong with slicing at the byte level if you’re slicing with a delimiter like \n or “. UTF-8 sets high bits so continuation bytes never look like ASCII characters.


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

Search: