cmd默认编码为GBK,在编译utf-8的源码文件时

javac -encoding utf-8 Demo.java