在网址php中解码ascii

时间:2019-03-25 20:13:17

标签: php ascii decode

我尝试在URL站点中使用ascii字母,但是我不知道我在URL中使用ascii字母(è,é,à等)的含义。我尝试使用urlencode \ urldecode,但是使用ascii字母时无法查看页面。我不知道如何解决这个问题。 你能帮我举个例子吗?

setHasFixedSize(true)

我的问题出在“ urlencode($ dd)”

更新

function my_url($offer) {
$dd = url_title($offer->number." ".$offer->number,"-",true);
return site_url("siteweb\view".$offer->number."/".urlencode($dd));

1 个答案:

答案 0 :(得分:-1)

我认为您正在寻找的是htmlentities

“ htmlentities-将所有适用的字符转换为HTML实体”

相关问题