The picture path contains the reason why Chinese cannot be displayed properly under jsp and the solution

  • 2020-12-16 06:03:57
  • OfStack

Such as: < img src="/pic/lupload/img icbc upload.jpg" / > , the image path is correct, put it in a separate html page can be opened normally, in jsp the image is not displayed

The reason is that URIEncoding is not configured on tomcat. Modification method:

Add URIEncoding="utf-8" to ES18en.xml of tomcat (the code for the page is ES22en-8)


<Connector port="8080" URIEncoding="utf-8"/>


Related articles: