<body>
<img src="中文名称.jpg" width="709px" height="450px" id="player">
</body>
jsp显示不出来。
解决方案:
在tomcat中,找到conf目录下的server.xml中,找到
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
即最后形成:
<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
connectionTimeout="20000"
redirectPort="8443" />这样就可以解决中文问题了。
本文介绍了解决JSP页面中文名称无法正常显示的问题。通过在Tomcat的server.xml配置文件中添加URI编码设置为UTF-8,可以有效解决中文显示乱码的情况。
1901

被折叠的 条评论
为什么被折叠?



