Resolve the problem that Chinese characters in the image path cannot be displayed properly under jsp
- 2020-10-31 21:57:06
- 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 is not shown pictures
The reason is that URIEncoding is not configured on tomcat. Modification method:
Add URIEncoding=" utf-8 "to ES17en.xml of tomcat (the code for the page is ES21en-8)
The reason is that URIEncoding is not configured on tomcat. Modification method:
Add URIEncoding=" utf-8 "to ES17en.xml of tomcat (the code for the page is ES21en-8)
<Connector port="8080" URIEncoding="utf-8"/>