Solution Based on Intellij Idea garbled code, intellijidea garbled
Three garbled issues frequently encountered when using Intellij Idea:
1. Engineering Code garbled
2. Run the main method and garbled on the console
3. tomcat running, garbled on the console
Solution:
1. Engineering Code garbled
Settings> Editor> File Encodings> Global Encodings & Project Encodings:UTF-8
2. Run the main method and garbled on the console
Settings> Build, Execution, Deployment> Compiler> Java Compiler> Additional command line parameters> set:-Encoding UTF-8
3. tomcat running, garbled on the console
Edit deployments> Tomcat Server> server> VM options> set:-Dfiles. encoding = UTF-8
Idea> bin> idea.exe.vmoptions idea64.exe. vmoptions Add at the end of the configuration file:-Dfiles. encoding = UTF-8
The above solution based on Intellij Idea garbled code is all the content shared by Alibaba Cloud xiaobian. I hope to give you a reference and support for the customer's house.