用javac编译java文件时出现上述编码错误。
需要在编译运行时指定编码
javac -encoding utf-8 a.java java -Dfile.encoding=utf-8 a
You must be logged in to post a comment.