与空间建立超链接 [英] make a Hyperlink of Path with Space

查看:88
本文介绍了与空间建立超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是制作一个应用程序,在该应用程序中,单个用户可以接收由管理员通过电子邮件发送的个人消息.

但是当我使用并通过电子邮件发送它时,它只需要没有空间的超链接.

例如,我发送类似附件的电子邮件:http://www.abc.com/folder1/xyz.jpg

因此,我将此路径发送到emp,但它以 http://www.abc.com/folder1 [ ^ ]它不包含其他表示完整路径的内容.它停在空间后面.


因此,我该怎么做才能占据整个空间并使其成为超链接.


谢谢和问候..
Mitesh

i just make an application in which individual user can receive personal message which is sent by admin side through an email.

but when i use and sent it through email, it only takes hyperlink which is without space.

e.g.i send email like : http://www.abc.com/folder1 of attachment/xyz.jpg

so, this path i send to emp but it takes as hyperlink as http://www.abc.com/folder1[^] it does not contain some other means full path. it stopes after space.


so, what can i do for take whole path with space and make it as hyperlink.


Thanks and Regards..
Mitesh

推荐答案

将您的空间替换为%20",即空间的编码.

因此,您的链接将变为 http://www.abc.com/folder1%20of%20attachment/xyz.jpg [ ^ ]
replace your space with ''%20'', that is the encoding of space.

So your link will become http://www.abc.com/folder1%20of%20attachment/xyz.jpg[^]


尝试使用有效的URL,将空格替换为%20(对空间进行编码),例如

http://www.abc.com/folder1%20of%20attachment/xyz.jpg

在此处查看url的编码:

http://www.w3schools.com/tags/ref_urlencode.asp [
Try using a valid URL, replacing spaces with %20 (encoding for space) e.g.

http://www.abc.com/folder1%20of%20attachment/xyz.jpg

Look at the encodings for url here:

http://www.w3schools.com/tags/ref_urlencode.asp[^]


这篇关于与空间建立超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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