Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350703 Add standard system property stdin.encoding
  3. JDK-8356045

Release Note: Add Standard System Property stdin.encoding

XMLWordPrintable

      A new system property `stdin.encoding` has been added. This property contains the name of the recommended Charset for reading character data from `System.in`, for example, when using `InputStreamReader` or `Scanner`. By default, the property is set in a system-specific fashion based on querying the OS and user environment. Note that its value may differ from the value of the `file.encoding` property (the default Charset) and the value of the `native.encoding` property. The value of `stdin.encoding` may be overridden to be UTF-8 by providing the argument `-Dstdin.encoding=UTF-8` on the command line.

            smarks Stuart Marks
            smarks Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: