Are you using the website opened by eclipse? Try using another browser. If you encounter garbled characters, manually set the encoding in the browser to UTF-8 and see if it displays correctly. Everything that needs to be changed has been changed, there should be no problem
Myeclipse’s browser default encoding seems to be ISO-8859-1 or Spanish or something. I forgot the specifics. Setting the encoding by right-clicking on the browser can solve this problem. There is no need to bring your own browser, most other browsers can automatically recognize the encoding, so there should be no garbled characters.
You don’t need to change the default encoding method of tomcat for your garbled code without passing parameters. As long as you set the encoding format of jsp, and then look at the encoding of your eclipse, your problem can basically be solved
I finally found the root of the problem. I'm using the myeclipse2016 version, so it's a problem with the IDE.
Just turn off the things like eyes in the picture above, and that’s it. If it still doesn't work, try a few more times.
Try setting the file encoding of IDE to utf8
Look at the encoding of tomcat
<head>Add an encoding tag to the header:
Are you using the website opened by eclipse? Try using another browser. If you encounter garbled characters, manually set the encoding in the browser to UTF-8 and see if it displays correctly. Everything that needs to be changed has been changed, there should be no problem
Myeclipse’s browser default encoding seems to be ISO-8859-1 or Spanish or something. I forgot the specifics. Setting the encoding by right-clicking on the browser can solve this problem. There is no need to bring your own browser, most other browsers can automatically recognize the encoding, so there should be no garbled characters.
You don’t need to change the default encoding method of tomcat for your garbled code without passing parameters. As long as you set the encoding format of jsp, and then look at the encoding of your eclipse, your problem can basically be solved
Try it with your own browser. Generally, as long as the jsp encoding format is set, there will be no problem