JDK-8265875 : Release Note: Console Charset API
  • Type: Sub-task
  • Component: core-libs
  • Affected Version: 17
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • OS: generic
  • CPU: generic
  • Submitted: 2021-04-23
  • Updated: 2021-08-06
  • Resolved: 2021-08-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17Resolved
Description
`java.io.Console` has been updated to define a new method that returns the `Charset` for the console. The returned Charset may be different from the one returned from `Charset.defaultCharset()` method. For example, it returns `IBM437` while `Charset.defaultCharset()` returns `windows-1252` on Windows (en-US). Refer to the [CSR](https://bugs.openjdk.java.net/browse/JDK-8264209) for more detail.