var urlRequest:URLRequest = new URLRequest("子系统.swf");
loader.load(urlRequest);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);当我使用本机swf加载另一个swf时,一切都很好。但是,在我将我的主swf嵌入到html之后,它会报告错误:
"NetworkError: 404 Not Found http://127.0.0.1:8020/huanmao/%D7%D3%CF%B5%CD%B3.swf"我不明白什么时候"子系统“变成"%D7%D3%CF%B5%CD%B3",我在UrlRequest中找不到任何字符集选项。如果我用英文名字代替中文,问题就消失了。这是我的html字符集设置。
http-equiv="Content-Type" content="text/html; charset=utf-8"我所有的文件都是用utf-8编辑的。
我真的很困惑。这个问题快把我害死了!任何帮助都将不胜感激!!
发布于 2015-10-13 00:55:32
几年前,我也面临着同样的问题。
如果您正在使用tomcat,请在您的8020端口连接程序中添加这些属性。(在server.xml)
URIEncoding="UTF-8"
useBodyEncodingForURI="true"这是我的设定。
<Connector port="8400" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="9400"
URIEncoding="UTF-8"
useBodyEncodingForURI="true" />https://stackoverflow.com/questions/33052489
复制相似问题