解决方案 1. File -> Settings… 2. 搜索 Runner (运行程序),在 ‘VM options:’ 中添加:-Dfile.encoding=GB2312 注:GB2312:汉字编码字符集 最后,我们来测试一下