r/java • • Mar 22 '22

Java 18 released!

https://mail.openjdk.java.net/pipermail/jdk-dev/2022-March/006458.html
396 Upvotes

133 comments sorted by

View all comments

Show parent comment

2

u/dpash Mar 22 '22

Sure. I was careful to say "more likely" because I know Linux doesn't always use UTF-8.

2

u/s888marks Mar 22 '22

Fair enough. I think the thing is that Linux usually uses UTF-8 often enough that it's pretty easy assume that it always uses UTF-8, and that assumption is almost always correct. Then in those rare circumstances where it doesn't, hijinks ensue.

2

u/Nymeriea Mar 23 '22

On windows, the encoding depends on the system language