project-mirai / mirai-hello-world

Hello World with mirai
GNU Affero General Public License v3.0
37 stars 26 forks source link

JavaMain启动中文乱码,KotlinMain启动就不乱码 #5

Open Tiborhuang opened 3 years ago

Tiborhuang commented 3 years ago

Task :JavaMain.main() 2021-10-11 16:58:48 I/Mirai: Mirai ����ʹ�����滷��. ��������֤�뽫�ᵯ���Ի���

KotlinMain启动 2021-10-11 17:29:09 I/Mirai: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 mirai.no-desktop 以关闭.

ChthollyWn commented 2 years ago

我也是这个问题,请问你解决了吗

wysnxzm commented 2 years ago

setting>gradle>build and run using项 默认的是gradle,改选idea项

Plato-Apocalypse commented 2 years ago

1.IDEA项目utf8设置好,2.IDEA -->HELP —> Edit Custom VM OPtions 加参数:-Dfile.encoding=UTF-8