RFR: 8265989: System property for the native character encoding name
Naoto Sato
naoto at openjdk.java.net
Thu Apr 29 13:42:51 UTC 2021
On Thu, 29 Apr 2021 13:23:42 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> `native.encoding` preserves the encoding that current `Charset.defaultCharset()` is returning, which is based on `file.encoding`. So I believe the current implementation is correct. If it is biased toward `sun.jnu.encoding`, it would be problematic especially on Windows where that represents `system locale`.
>
> Okay for now but the value of file.encoding will change to "UTF-8" so will be different to native.encoding.
Yes. That will be covered by JEP400.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3777
More information about the core-libs-dev
mailing list