1. Change the bin\idea.exe.vmoptions file in the intellij installation directory under windows
Add -Dfile.encoding=UTF-8 as shown below:
2. Set the encoding of IDEA server as follows:
tomcat server -- >server->VM options
Set VM options to -Dfile.encoding=UTF-8 as shown below: