Currently `stdout/err.encoding` system properties are derived from host specific way, i.e., the value from nl_langinfo() on Unix and GetConsoleOutputCP() on Windows is used if the Java runtime is connected to a terminal. If the runtime is not connected to a terminal, e.g. redirecting to a file or pipe, it falls back to `native.encoding`. In those cases, using the default charset (`file.encoding`) would be desirable, considering all other IO apis now use the default charset.
- relates to
-
JDK-8187041 JEP 400: UTF-8 by Default
-
- Closed
-