character encoding utf-8 java code example Example: javac encoding utf-8 javac -encoding utf8 Test.java