Hacker News new | ask | show | jobs
by sorokod 3581 days ago
Note that internally Java represents strings as utf-16
1 comments

Depends. The API for strings in java is mostly UTF16 but the latest JVM will magically use UTF8 as its internal representation.
Only the Oracle one, it doesn't apply to other vendors.