无法将 url link "Health%20&%20Beaut" 解码为 "Health & Beauty"
Can't deccode url link "Health%20&%20Beaut" to "Health & Beauty"
无论如何我都会尝试解码
http://mywebsite/product/get_product?lv1=Health%20&%20Beaut
我用 html_entity_decode(Health%20&%20Beaut)
我想要"Health & Beauty"
但是这个得到
谁能帮我?谢谢
您是否尝试过使用 php 的 urldecode
...
PHP:
$x = "Health%20&%20Beaut";
echo urldecode($x);
输出:
Health & Beaut
见http://sandbox.onlinephpfunctions.com/code/4b0ba927391a55b2bf0d9716998f35853e26e7b4
使用javascript全局函数decodeURIComponent(uri)
无论如何我都会尝试解码
http://mywebsite/product/get_product?lv1=Health%20&%20Beaut
我用 html_entity_decode(Health%20&%20Beaut)
我想要"Health & Beauty" 但是这个得到 谁能帮我?谢谢
您是否尝试过使用 php 的 urldecode
...
PHP:
$x = "Health%20&%20Beaut";
echo urldecode($x);
输出:
Health & Beaut
见http://sandbox.onlinephpfunctions.com/code/4b0ba927391a55b2bf0d9716998f35853e26e7b4
使用javascript全局函数decodeURIComponent(uri)