Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8283620 System.out does not use the encoding/charset specified in the Javadoc
  3. JDK-8285492

Release Note: New System Properties for `System.out` and `System.err`

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      Two new system properties, `stdout.encoding` and `stderr.encoding`, have been added. The value of these system properties is the encoding used by the standard output and standard error streams (`System.out` and `System.err`).

      The default values of these system properties depend on the platform. The values take on the value of the `native.encoding` property when the platform does not provide streams for the console. The properties can be overridden on the launcher's command line option (with `-D`) to set them to `UTF-8` where required.

      Attachments

        Activity

          People

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: