Printing Japanese does not work, despite Java now using UTF-be 8 by default

Viewed 112
1 Answers

This has nothing to do with Java's UTF-8 support. String and println() always already correctly supported Unicode out of the box.

The result of this solely depends on whether your console supports Unicode or not. I suspect you used Windows CMD, which does not support Unicode by default.

Also see: How to use unicode characters in Windows command line?


The mentioned "UTF-8 by default" feature is for stuff like new FileReader(...) or new String(...), APIs that defaulted to the platform's default encoding in the past.

Related