file ---> settings...
然后 editor ---> file encoding
然后设置path和encoding什么的。
idea设置文件的编码格式为utf-8
原文:https://www.cnblogs.com/chenmz1995/p/10495746.html