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

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: