简体   繁体   English

带问号的HTML href链接

[英]HTML href link with question mark

I've got problem with a href link and quote mark 我在使用href链接和引号时遇到问题

i should to generate link like this 我应该生成这样的链接

<a class="vk_share__a" href = "http://vk.com/share.php?url=http://vita-plant.ru<?=$arResult["DETAIL_PAGE_URL"] ?>&title=<?=$arResult[NAME]?>&description=<?=$arResult[PREVIEW_TEXT]?>&image=http://vita-plant.ru<?=$social_img_link;?>" id="vk_share_button<?=$social_id?>"></a>

when i check and click it in chrome developer tools it's work correct, with cyrillyc letter 当我检查并在chrome开发人员工具中单击它时,它的工作正确,带有cyrillyc字母

<a href="http://vk.com/share.php?url=Привет мир" title="">клик</a>

but when i hover and click it on page a get something like this 但是当我将鼠标悬停在页面上并单击它时,会得到这样的信息

http://vk.com/share.php?url=%CF%F0%E8%E2%E5%F2%20%EC%E8%F0

when i need 当我需要时

http://vk.com/share.php?url=Привет%20мир

在此处输入图片说明

how can i get cyryllic letter in chrome developer tools and in hover-click event? 如何在chrome开发人员工具和悬停点击事件中获得Cyryllic字母?

Mb it's php mod_rewrite or htaccess? MB是php mod_rewrite还是htaccess?

thank you! 谢谢!

This is actually working correctly. 这实际上可以正常工作。

URLs cannot contain non-ASCII characters, so the Cyrillic is being converted to punycode by the browser to ensure it correct. URL不能包含非ASCII字符,因此浏览器会将西里尔字母转换为punycode以确保其正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM