utf8文件中能不能直接写汉字?
utf8文件中能不能直接写汉字?
我这样做不行,utf8文件中要用的汉字怎么办,用resourceBundle?
public class test
{
public static void main(String[] args)
{
System.out.println("Hello World 中言语 !");
}
}
C:\ww>javac test.java
test.java:5: warning: unmappable character for encoding GBK
System.out.println("Hello World 涓█璇? !");
^
1 warning
C:\ww>java test
Hello World 涓█璇? !