Try the following command-line argument when starting your application:
-Dfile.encoding=utf-8
This changes the default encoding of the JVM for I/O operations.
You can also try:
System.setOut(new PrintStream(System.out, true, "utf-8"));
More Related Contents:
- Java : How to determine the correct charset encoding of a stream
- How to convert Strings to and from UTF8 byte arrays in Java
- How to Find the Default Charset/Encoding in Java?
- What is the default encoding of the JVM?
- java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x91\xBD\xF0\x9F…’
- Guessing the encoding of text represented as byte[] in Java
- IntelliJ IDEA incorrect encoding in console output
- How to reliably guess the encoding between MacRoman, CP1252, Latin1, UTF-8, and ASCII
- Default character encoding for java console output
- What’s a good Java, curses-like, library for terminal applications? [closed]
- Spring MVC UTF-8 Encoding
- How to convert a string with Unicode encoding to a string of letters
- Reading UTF-8 – BOM marker
- How can I create table using ASCII in a console?
- Best way to encode text data for XML in Java?
- How to encode a WAV to a mp3 on a Android device
- Installing Java on OS X 10.9 (Mavericks)
- How can I check if a Java program’s input/output streams are connected to a terminal?
- Why does Java’s String.getBytes() uses “ISO-8859-1”
- Java 8 UTF-8 encoding issue (java bug?)
- ISO-8859-1 encoding and binary data preservation
- What is the character encoding of String in Java?
- How do I convert a byte array with null terminating character to a String in Java?
- SunTlsRsaPremasterSecret KeyGenerator not available
- How to replace � in a string
- All inclusive Charset to avoid “java.nio.charset.MalformedInputException: Input length = 1”?
- Jar to Mac OSX App Bundle with app bundler
- Native Swing Menu Bar Support For MacOS X In Java
- How can I return to the start of a line in a console?
- First character of the reading from the text file :  [duplicate]