java / devrel

Java DevRel feedback

Home Page:https://inside.java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: The console output pane has a `charset` of US-ASCII rather than UTF-8

Basil-Dot-Work opened this issue · comments

What happened?

The title says it all: The default character encoding of the Dev.Java Playground’s console pane is US-ASCII. For maximum compatibility, it should be UTF-8.

Run:

System.out.println( System.out.charset() ) ;

US-ASCII

So of course characters in Unicode beyond ASCII are garbled.

Run:

System.out.println( "Kıvanç Aydoğan" ) ;

K?van? Aydo?an

Solution: Default the charset of the console pane to UTF-8.

OS

macOS

What browsers are you seeing the problem on?

Safari

Contact Details (optional)

BasilDotWork@gmail.com

Additional information

Leave blank

Thank you for reporting this, we highly appreciate your attention to Java Playground. We are aware of this problem and right now in a process of testing a fix for this problem. There's a plan to release an update shortly. We will update this ticket as soon as the issue resolved.

Duplicate of #4

Solved.
Screenshot 2023-10-23 at 17 14 15 (2)