File -> Setting ->Editor -> File Encodings 里面的Global Encoding改为UTF-8 Project Encoding改为UTF-8 转载于:https://www.cnblogs.com/SP-0306/p/10875760.html