Playing with utf8 urls

If you ever had an experience of developing website for a language except English and you wish to use utf8 URLs you saw the problem. The problem is that you can not compare incoming URLs with the value in your language. What you see is % + characters that do not mean anything. To retrieve the value of meaningless URL you should decode it. In PHP this can be done using urldecode() function. If you ever wish to convert the language phrase to what eventually ends up in user browser you can use urlencode(). The result of this function is those % + chars .

Read 1739 times Last modified on Tuesday, 18 August 2015 07:33
Rate this item
(0 votes)
About Author
Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

Advanced Programming Concepts
News Letter

Subscribe our Email News Letter to get Instant Update at anytime