找到File-->settings-->editor-->flie encodings -->global encodings- > utf-8,project encodings也是选择utf-8,然后在点击apply