控制台编译java文件报错: javac MainTest.java 编码 GBK 的不可映射字符 (0x80) 解决: 编译加上字符集: javac -encoding UTF-8 MainTest.java 输出: