Comment by pron
In Java,
" ".codePoints().count()
==> 5
" ".chars().count()
==> 7
" ".getBytes(UTF_8).length
==> 17
(HN doesn't render the emoji in comments, it seems)In Java,
" ".codePoints().count()
==> 5
" ".chars().count()
==> 7
" ".getBytes(UTF_8).length
==> 17
(HN doesn't render the emoji in comments, it seems)