IntelliJ IDEA set the encoding to utf-8 encoding problem

IntelliJ IDEA uniformly sets the encoding to utf-8 encoding

Question one:

File->Settings->Editor->File Encodings

Question two:

File->Other Settings->Default Settings ->Editor->File Encodings

 

Question three:

Change the encoding format in the encodings.xml file in the .idea folder of the project to uft-8

Question four:

File->Settings->Build,Execution,Deployment -> Compiler -> Java Compiler

Set the  Additional command line parameters option to  -encoding utf-8

 

 

Question five:

1) Open Run/Debug Configuration and select your tomcat

2) Then set -Dfile.encoding=UTF-8 in Server> VM options and restart tomcat

Question six:

Clear the browser cache and try again.

 

Source https://blog.csdn.net/m0_38132361/article/details/80628203

Guess you like

Origin blog.csdn.net/weixin_43206161/article/details/112859474