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

I would have sworn that it was utf-16 (which is still Unicode enough btw) .


Java chars are 2 bytes, but the default String encoding when serializing to/from byte[] arrays and streams is UTF-8 (on unix at least, may vary on windows).


Uh, not sure why this comment was controversial?




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

Search: