Following simple program renders with incorrect encoding on a Windows system with cp1250 native encoding: 
```
void main() {
println("Ahoj světe");
}
```
All my attempts to enforce a different encoding to the JVM failed.
In comparison `System.out.println` also renders with wrong encoding by default, however it is fixable by `stdout.encoding` property override.
The root cause of the encodings discrepancy on the particular Windows system is unclear, however an option to override default encoding for IO is painfully missing.
            
```
void main() {
println("Ahoj světe");
}
```
All my attempts to enforce a different encoding to the JVM failed.
In comparison `System.out.println` also renders with wrong encoding by default, however it is fixable by `stdout.encoding` property override.
The root cause of the encodings discrepancy on the particular Windows system is unclear, however an option to override default encoding for IO is painfully missing.
- csr for
- 
                    JDK-8342208 Unable to set encoding for IO.println, IO.print and IO.readln -           
- Closed
 
-         
- links to
- 
                     Commit(master)
        openjdk/jdk/426da4bb Commit(master)
        openjdk/jdk/426da4bb
- 
                     Review(master)
        openjdk/jdk/21569 Review(master)
        openjdk/jdk/21569