php - How to get nepali characters from url? -
my url like:
index.com/controller/method/उ-अहिले-कहाँ-छ-त
i tried echo parameter, looks like:
e0%a4%85%e0%a4%b9%e0%a4%bf%e0%a4%b2%e0%a5%87-%e0%a4%95%e0%a4%b9%e0%a4%be%e0%a4%81-%e0%a4%9b-%e0%a4%a4
i want parameter showed उ-अहिले-कहाँ-छ-त
, idea?
thanks in advance
use rawurldecode()
function:
$string = '%e0%a4%89-%e0%a4%85%e0%a4%b9%e0%a4%bf%e0%a4%b2%e0%a5%87-%e0%a4%95%e0%a4%b9%e0%a4%be%e0%a4%81-%e0%a4%9b-%e0%a4%a4'; echo rawurldecode($string);
output:
उ-अहिले-कहाँ-छ-त
Comments
Post a Comment