Printing UTF-8 with Java

By default, the System.out.print* methods will not output UTF-8. To print UTF-8 to the console, you can use a PrintStream.

import java.io.PrintStream;
import java.io.UnsupportedEncodingException;

public class Main {
    public static void main(final String args[]) throws UnsupportedEncodingException {
        new PrintStream(System.out, true, "UTF-8").println("1000 さくら");
    }
}