在java web 系统下:
<img src="中文文件名" /> 无法显示图片,图片名改成英文就可以显示;
试了下在电脑桌面写了个HTML测试下,可以显示中文名称的图片;
请教怎么解决?谢谢!
------解决方案--------------------
哎,没事找事干!
- XML code
<filter> <filter-name>urlFilter</filter-name> <filter-class>com.test.UrlFilter</filter-class> <init-param> <param-name>DEFAULT_URI_ENCODE</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>urlFilter</filter-name> <url-pattern>*.jpg</url-pattern> </filter-mapping> <filter-mapping> <filter-name>urlFilter</filter-name> <url-pattern>*.bmp</url-pattern> </filter-mapping> <filter-mapping> <filter-name>urlFilter</filter-name> <url-pattern>*.gif</url-pattern> </filter-mapping>