java / devrel

Java DevRel feedback
https://inside.java
10 stars 1 forks source link

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

Closed Basil-Dot-Work closed 1 year ago

Basil-Dot-Work commented 1 year ago

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

denismakogon commented 1 year ago

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.

delabassee commented 1 year ago

Duplicate of #4

delabassee commented 1 year ago

Solved.

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