Possible errors:
1. jsp page Encoding
2. Form Encoding
3. servlet accepted Encoding
4. Specify the encoding in the server. xml file in Tomcat
All the encoding should be unified, the general use of "UTF-8" is better
The last error occurred in the fourth case. The problem has been solved. solution:
Modify the "server. xml" configuration file in the Tomcat server that publishes SOLR.
Before modification:
- <Connector Port = "8089" protocol = "HTTP/1.1"
- Connectiontimeout = "20000"
- Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
After modification:
- <Connector Port = "8089" protocol = "HTTP/1.1"
- Connectiontimeout = "20000"
- Redirectport = "8443"Uriencoding =UTF-8"/>
In this way, the full-width Japanese or Chinese submitted through the URL will use the UTF-8 encoding to submit the data.
For detailed configuration files, see the attachment.