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

Sure, that's one way to do it, but if the invalid byte were logically tied to the byte before it in its original encoding, then now your substring split will mangle that character.


If it's invalid then you don't mangle anything, it's mangled already for whatever reason, no?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: