我用editplus编写的java,运行输出的中文是乱码,请问怎么解决?

最好是一个能一劳永逸的方法
2025-02-24 13:46:41
推荐回答(1个)
回答1:

java源文件保存为utf-8编码

编译的时候加上编码
javac -encoding utf-8