Sending arabic characters in URL

◇◆丶佛笑我妖孽 提交于 2019-12-03 16:32:47

You must urldecode your encoded entities. Furthermore remember that UTF8 and PHP are not a great combination.

As I mention in other question, You should do urlencode the Arabic text

urlencode('كلام-عربي')

And its very important to add the charset code to the head tag of the page, otherwise the link will not work

<meta charset="utf-8">

dont use urlencode just use rawurlencode

As I mention in other question, You should do urldecode the Arabic text in URI

echo urldecode(explode('?', $_SERVER['REQUEST_URI'], 2));

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!