FirstJava.java:3: 错误: 编码GBK的不可映射字符
System.out.println("娆㈣繋瀛︿範Java绋嬪簭锛?")锛?
^
FirstJava.java:3: 错误: 编码GBK的不可映射字符
System.out.println("娆㈣繋瀛︿範Java绋嬪簭锛?")锛?
^
FirstJava.java:4: 错误: 编码GBK的不可映射字符
System.out.println("鍝堝搱")锛?
^
FirstJava.java:5: 错误: 编码GBK的不可映射字符
System.out.println("鍛靛懙")锛?
^
FirstJava.java:3: 错误: 需要‘;‘
System.out.println("娆㈣繋瀛︿範Java绋嬪簭锛?")锛?
^
FirstJava.java:4: 错误: 需要‘;‘
System.out.println("鍝堝搱")锛?
^
FirstJava.java:5: 错误: 需要‘;‘
System.out.println("鍛靛懙")锛?
编译时添加编码:
javac -encoding UTF-8 FirstJava.java
原文地址:https://www.cnblogs.com/HAHACHANGEFROMNOW/p/9648804.html