1. First of all, we need to distinguish between the tomcat log encoding and the idea log display console encoding 2. Tomcat log encoding: In cmd, run "cd /d tomcat root directory" and "bin\catalina.bat run". Use "chcp65001" to switch cmd to utf8, and "chcp 936" to switch cmd to gbk. Determine the tomcat log encoding, which is usually in tomcat/conf/logging.properties 3. IDEA display encoding: Windows uses GBK by default, so IDEA displays GBK encoding by default. [Be sure] to add -Dfile.encoding=UTF-8 in Help-- custom vm options to force utf8 encoding display. Do not change it yourself. The vmoptions may be in the wrong position. IDEA will copy a 4. [Avoid] Changing Tomcat's logging.properties to GBk will cause garbled get/post parameters during debugging Summarize This is the end of this article about the garbled characters in Tomcat's console in IDEA and the UTF-8 encoding setting in IDEA. For more related content about the garbled characters in the idea tomcat console in UTF-8, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation of MySQL cumulative calculation implementation method
>>: js to achieve a simple magnifying glass effect
We know that in general, a function must be calle...
Preface: Front-end: jq+h5 to achieve the nine-gri...
MySQL UTF-8 encoding MySQL has supported UTF-8 si...
Table of contents Initially using the callback fu...
There is currently a requirement that an operatio...
Download image docker pull openjdk Creating a Dat...
After a lot of trouble, I finally figured out the...
In the MySQL database, after tables are associate...
Slow log query function The main function of slow...
I wonder if you have ever thought about this ques...
1. Record several methods of centering the box: 1...
When an employer asks you whether an index will b...
Based on theories such as Saussure's philosop...
Preparation: 1. Install VMware workstation softwa...
Table of contents 1. Installation Environment 2. ...