3 ms·I would have sworn that it was utf-16 (which is still Unicode enough btw) .by wolfgangK 15y agoI would have sworn that it was utf-16 (which is still Unicode enough btw) .jbooth 15y agoJava 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).jbooth 15y agoUh, not sure why this comment was controversial?