ASP.NET中的字符无效?? [英] Invalid Characters in ASP.NET ??

查看:86
本文介绍了ASP.NET中的字符无效??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我创建了一个使用mms流式传输音乐的网站。该服务很有效但是我注意到当歌曲或歌曲位置中有一个

的背景时,服务器(或其他东西)会在

apostaphie并导致歌曲不流。即:


mms:\我的音乐\最新的歌曲\她的Mine.wma被读为mms:\我的

音乐\最好的

歌曲\她/

当目录中有一个附件时,它也会这样做。是否有一个

来解决这个问题?任何建议或信息都会非常感激。


谢谢,


Chuck


Hello,

I have made a web site that streams music using mms. The service works
great but I have noticed that when the song or song location has an
apostaphie in it the server (or something) cuts everything off after the
apostaphie and causes the song not to stream. i.e.:

mms:\My Music\Greatest Songs\She''s Mine.wma is read as mms:\My
Music\Greatest
Songs\She

It does the same when the directory has an apostaphie in it. Is there a
work around for this? Any suggestions or information would be greatly
appreciated.

Thanks,

Chuck


推荐答案

urlencode()

htmlencode()

在它周围加上引号

逃避叛逆

尝试这些想法


-

Curt Christianson

所有者/首席开发人员,DF-Software
www.Darkfalz.com

" Charles A. Lackman" <章***** @ cet.com>在消息中写道

news:OM ************** @ TK2MSFTNGP12.phx.gbl ...
urlencode()
htmlencode()
putting quotes around it
escaping the apostrophy
Try those ideas

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charles A. Lackman" <Ch*****@cet.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
你好,
我创建了一个使用mms流式传输音乐的网站。这项服务工作很好但是我注意到,当歌曲或歌曲位置中有一个
apostaphie时,服务器(或其他东西)会在
apostaphie之后切断所有内容并导致歌曲不流。即:

mms:\我的音乐\最新的歌曲\她的Mine.wma被读为mms:\ Myy
音乐\最新的歌曲\She

当目录中有一个附件时它会这样做。有没有为此工作?任何建议或信息都会非常感激。

谢谢,

Hello,

I have made a web site that streams music using mms. The service works
great but I have noticed that when the song or song location has an
apostaphie in it the server (or something) cuts everything off after the
apostaphie and causes the song not to stream. i.e.:

mms:\My Music\Greatest Songs\She''s Mine.wma is read as mms:\My
Music\Greatest
Songs\She

It does the same when the directory has an apostaphie in it. Is there a
work around for this? Any suggestions or information would be greatly
appreciated.

Thanks,

Chuck



您好,

感谢您的回复。


我尝试了以下内容,它仍然提供与原始相同的结果

问题。


Dim AString as String =(&mms:\ Myy Music \Greatest Songs \ She's Mine.wma")


然后我将AString发送给媒体播放器。


我也尝试了以下内容,媒体播放器无法识别文件:


Dim AString as String ="(mms:\ Myy Music \Greatest Songs\She's Mine.wma"&")"


谢谢,

Chuck


" Curt_C [MVP]" < software_AT_darkfalz.com>在消息中写道

新闻:OD ************** @ tk2msftngp13.phx.gbl ...
Hello,
Thank You for your response.

I tried the following and it still gave the same results as the original
problem.

Dim AString as String = ("mms:\My Music\Greatest Songs\She''s Mine.wma")

Then I send the AString to the Media Player.

I also tried the following and the Media Player did not recognize the file:

Dim AString as String = "(mms:\My Music\Greatest Songs\She''s Mine.wma" & ")"

Thanks,
Chuck

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:OD**************@tk2msftngp13.phx.gbl...
urlencode()
htmlencode()
在它周围加上引号
逃避堕落

尝试这些想法

-
Curt Christianson 所有者/首席开发人员,DF-Software
www.Darkfalz.com

" Charles A. Lackman" <章***** @ cet.com>在消息中写道
新闻:OM ************** @ TK2MSFTNGP12.phx.gbl ...
urlencode()
htmlencode()
putting quotes around it
escaping the apostrophy
Try those ideas

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charles A. Lackman" <Ch*****@cet.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
你好,
我创建了一个使用mms流式传输音乐的网站。这项服务工作很好但是我注意到,当歌曲或歌曲位置中有一个
apostaphie时,服务器(或其他东西)会在
apostaphie之后切断所有内容并导致歌曲不流。即:

mms:\我的音乐\最新的歌曲\她的Mine.wma被读为mms:\ Myy
音乐\最新的歌曲\她br />
当目录中有一个apostaphie时,它也会这样做。有没有为此工作?任何建议或信息都会非常感激。

谢谢,

Hello,

I have made a web site that streams music using mms. The service works
great but I have noticed that when the song or song location has an
apostaphie in it the server (or something) cuts everything off after the
apostaphie and causes the song not to stream. i.e.:

mms:\My Music\Greatest Songs\She''s Mine.wma is read as mms:\My
Music\Greatest Songs\She

It does the same when the directory has an apostaphie in it. Is there a
work around for this? Any suggestions or information would be greatly
appreciated.

Thanks,

Chuck




1)\应该是/

2)你试过urlencode吗?

3)查询字符串是什么看起来像链接?尝试直接在地址栏中输入

。这不是一个ASP.NET问题,它是一个糟糕的查询字符串

问题


-

Curt Christianson

所有者/首席开发人员,DF-Software
www.Darkfalz。 com

" Charles A. Lackman" <章***** @ cet.com>在消息中写道

news:u%**************** @ TK2MSFTNGP11.phx.gbl ...
1) \ should be /
2) did you try the urlencode?
3) what does the querystring look like for the link? Try typing it directly
into the address bar. It''s not an ASP.NET issue, it''s a bad querystring
issue

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charles A. Lackman" <Ch*****@cet.com> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...
你好,
感谢您的回复。

我尝试了以下内容,它仍然提供了与原始问题相同的结果。

Dim AString as String =(&mms:\ My音乐\最新歌曲\她是Mine.wma)

然后我将AString发送给媒体播放器。
我也尝试了以下内容,媒体播放器无法识别
文件:
Dim AString as String ="(mms:\ Myy音乐\最新歌曲\她是我的。 wma"&
")"
谢谢,
Chuck

" Curt_C [MVP]" < software_AT_darkfalz.com>在消息中写道
新闻:OD ************** @ tk2msftngp13.phx.gbl ...
Hello,
Thank You for your response.

I tried the following and it still gave the same results as the original
problem.

Dim AString as String = ("mms:\My Music\Greatest Songs\She''s Mine.wma")

Then I send the AString to the Media Player.

I also tried the following and the Media Player did not recognize the file:
Dim AString as String = "(mms:\My Music\Greatest Songs\She''s Mine.wma" & ")"
Thanks,
Chuck

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:OD**************@tk2msftngp13.phx.gbl...
urlencode()
htmlencode( )
在它周围加上引号
逃避堕落

尝试这些想法

-
Curt Christianson
所有者/主管开发人员,DF-软件
www.Darkfalz.com

Charles A. Lackman <章***** @ cet.com>在消息中写道
新闻:OM ************** @ TK2MSFTNGP12.phx.gbl ...
urlencode()
htmlencode()
putting quotes around it
escaping the apostrophy
Try those ideas

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charles A. Lackman" <Ch*****@cet.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
你好,
我创建了一个使用mms流式传输音乐的网站。服务
工作得很好,但我注意到当歌曲或歌曲位置中有一个
apostaphie时,服务器(或其他东西)会在
之后切断所有内容并导致歌曲不流。即:

mms:\我的音乐\最新的歌曲\她的Mine.wma被读为mms:\ Myy
音乐\最新的歌曲\她br />
当目录中有一个apostaphie时,它也会这样做。是否有
可以解决这个问题?任何建议或信息都会非常感激。

谢谢,

Hello,

I have made a web site that streams music using mms. The service works great but I have noticed that when the song or song location has an
apostaphie in it the server (or something) cuts everything off after the apostaphie and causes the song not to stream. i.e.:

mms:\My Music\Greatest Songs\She''s Mine.wma is read as mms:\My
Music\Greatest Songs\She

It does the same when the directory has an apostaphie in it. Is there a work around for this? Any suggestions or information would be greatly
appreciated.

Thanks,

Chuck





这篇关于ASP.NET中的字符无效??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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