0
public class Test {
    public static void main(String[] args) {
        System.out.println("新聞");
    }
}

Above code is very simple,and it works fine.But if I remove a single word '聞', Intellij Idea warn me:

����: ����GBK�IJ���ӳ���ַ�
        System.out.println("�?");

My Intellij edition information shows below:

IntelliJ IDEA 2020.1.1 (Community Edition)
Build #IC-201.7223.91, built on April 30, 2020
Runtime version: 11.0.6+8-b765.40 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1990M
Cores: 6
Non-Bundled Plugins: training

And I use Gradle 5.2.1 to build the project.

3

1 Answer 1

0

Thank you, Egor Klepikov. Answer stackoverflow.com/a/58886877/12844632 works fine for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.