Joke Collection Website - Public benefit messages - I deploy a java project on tomcat. After deploying with eclipse, the Chinese text messages are garbled, but after deploying with myeclipse, they are sent normally. Why?

I deploy a java project on tomcat. After deploying with eclipse, the Chinese text messages are garbled, but after deploying with myeclipse, they are sent normally. Why?

The encoding methods are different. There is Edit in the upper left corner of ECLIPSE. Select set encoding

For Chinese, it should be edited, set the encoding method, and then choose it yourself. Generally, UTF-8 does not An error will occur. If it doesn’t work, look at ISO-8859-1