Details
Description
The Oracle Java 8 platform supports two system properties to configure the System console: sun.stdout.encoding and sun.stderr.encoding.
Default log4j configuration prints to console using platform's default encoding, however that's not what standard windows console expects.
I.e.
System.out.println("Поехали"); // works just fine System.out.write("Поехали!\n".getBytes(Charset.defaultCharset())); // characters are messed up log.info("Поехали"); // messed up in the same way
This happens not just on one machine, but on all Windows desktops and servers in our organization.
Can we have out of the box Layout/Appender which prints directly to System.out/err?
Attachments
Issue Links
- breaks
-
LOG4J2-1799 Error determining the current charset
- Resolved
- is related to
-
LOG4J2-783 PatternLayout's default charset should not be UTF-8
- Resolved
-
LOG4J2-255 Multi-byte character strings are scrambled in log output
- Closed
-
LOG4J2-1038 Incorrect documentation for layout default charset
- Closed
- relates to
-
LOG4J2-3372 ConsoleAppender on Windows does not use platform default encoding
- Open