For a web application, we need to link to some user generated content. A users types in a title for e.g. a product and we generate an SEO friendly url for that product:
You should do urlencode the Arabic or unicode text
urlencode('كلام-عربي')
And its very important to add the charset code to the head tag of the page, otherwise the link will not work