Daily Shaarli

All links of one day in a single page.

March 9, 2023

How can I change the Standard Out to "UTF-8" in Java - Stack Overflow
thumbnail

try {
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out), true, "UTF-8"));
} catch (UnsupportedEncodingException e) {
throw new InternalError("VM does not support mandatory encoding UTF-8");
}