logoalt Hacker News

lxgrlast Tuesday at 4:29 PM1 replyview on HN

As of Java 18, it is: https://openjdk.org/jeps/400


Replies

9rxlast Tuesday at 4:35 PM

That's not what your link says:

    The Java language allows source code to express Unicode
    characters in a UTF-16 encoding, and this is unaffected
    by the choice of UTF-8 for the default charset.
Perhaps you pasted the wrong one by mistake?

Not that such a change to the language for future code, even if only hypothetical, would bear any difference to this discussion anyway as legacy Java code encoded in other charsets is still Java code.

show 1 reply