IDEA 编码格式设置 UTF-8

IDEA 编码格式设置 UTF-8

 

1.文件编码设置为UTF-8

Editor > File Encodings

 

2.编译编码设置为utf-8

Build,Execution,Deployment > Complier > Java Complier
按图中设置:-encoding utf-8

 

3.虚拟机自定义设置(一般可不设置)

VM options:-Dfile.encoding=UTF-8

 


 

posted @ 2023-05-19 09:53  kszsa  阅读(4939)  评论(0编辑  收藏  举报