在文件名中插入带有空格的WMV [英] Inserting WMV with white space in file name

查看:81
本文介绍了在文件名中插入带有空格的WMV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我是EW2的新手,并且创建了一个非发布的网页来帮助测试/了解这些东西是如何工作的。

我有一个我创建的WMV文件另一种产品。我已经能够使用EW2将其插入到没有问题的空白网页中 - 如果文件名没有空格(空格字符)。示例:

但是如果文件确实有空格,最终结果是Windows Media播放器,但实际的WMV将无法播放。

正常工作: TEST1.WMV
不起作用: ALASKA WHALES.WMV
(两者都是同一个文件,因此不是内容问题)。

HTML代码因为文件被双引号括起来,由EW2生成。这不足以使这项工作正常,就像在"正常"情况下那样。应用程序中的代码?我已经有一段时间看了这样的东西,但是大多数其他的东西(我记得)在HTML中,文件/路径中的空格只要有适当的引号就可以正常工作...

谢谢你你的帮助!
Jerry


jl

Hi all.

I'm new to EW2, and creating a non-published web to help test/learn how this stuff works.

I have a WMV file I created via another product.  I've been able to use EW2 to insert this into a blank webpage w/o problem - if the file name has no white space (space characters).  Examples:

But if the file does have white space, the end result is the Windows Media player, but the actual WMV won't play.

Works fine:     TEST1.WMV
Doesn't work: ALASKA WHALES.WMV
(Both are the same file, so it's not a content issue).

The HTML code for the file is encased with double quotes, as generated by EW2.  Shouldn't that be sufficient to make this work correctly, like it would in "normal" code in an application?  It's been a while since I looked at stuff like this, but most everything else (I remember) in HTML with white space in the file/path works OK as long as there are appropriate quotes...

Thanks for your help!
Jerry


jl

推荐答案

我强烈建议不要在网站的任何文件的名称中使用空格。它只会导致问题。

如果必须用编码版本的%20替换空格
I would highly recommend not using spaces in names of any files in a website.  It will cause nothing but issues.

If you must replace the space with the encoded version of %20


这篇关于在文件名中插入带有空格的WMV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆