.net的中文路径问题
<object ID= "video1 " CLASSID= "clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA " style= "z-index: 101; position: relative; left: -10px; top: -52px; width: 400px; height: 300px; ">
<param name= "_ExtentX " value= "22304 ">
<param name= "_ExtentY " value= "14288 ">
<param name= "AUTOSTART " value= "-1 ">
<param name= "SHUFFLE " value= "0 ">
<param name= "PREFETCH " value= "0 ">
<param name= "NOLABELS " value= "0 ">
<param name= "SRC " value= <%#filePath%> > //filepath是带有中文路径的影片路径
<param name= "CONTROLS " value= "ImageWindow ">
<param name= "CONSOLE " value= "Clip1 ">
<param name= "LOOP " value= "0 ">
<param name= "NUMLOOP " value= "0 ">
<param name= "CENTER " value= "0 ">
<param name= "MAINTAINASPECT " value= "0 ">
<param name= "BACKGROUNDCOLOR " value= "#000000 ">
</object>
<object ID= "Object1 " CLASSID= "clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA " HEIGHT= "60 " style= "z-index: 102; left: 0px; position: absolute; top: 302px; width: 400px; ">
<param name= "controls " value= "ControlPanel,StatusBar ">
<param name= "console " value= "Clip1 ">
<embed type= "audio/x-pn-realaudio-plugin " CONSOLE= "Clip1 " CONTROLS= "ControlPanel,StatusBar " HEIGHT= "60 " WIDTH= "400 " AUTOSTART= "true ">
</object>
</body>
</html>
<param name= "SRC " value= <%#filePath%> > //filepath是带有中文路径的影片路径,比如说 films/连续剧/神雕侠侣/01.rm 在自己的机子上是可以看的,在别人的机子上就显示错误路径为:films/连续?神雕侠侣/01.rm
是不是中文路径支持的不好啊,要怎么改才可以在别的机子上也可以正确看影片呢?
------解决方案--------------------Server.UrlEncode(filePath);
------解决方案--------------------Realplayer对中文路径的支持确实不怎么好,应该考虑使用英文字母作路径名。