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

The difference is that with UTF-8 you're much more likely to trip over those bugs in random testing. With UTF-16 you're likely to pass all your test cases if you didn't think to include a non-BMP character somewhere. Then someone feeds you an emoji character and you blow up.


Which is why you should be using a library for all this, that uses fuzzing and other robustness checks.




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

Search: