[development] URL encoding

Earnie Boyd earnie at users.sourceforge.net
Thu Mar 11 14:02:01 UTC 2010

nitin gupta wrote:
>  Hi,
>  I am not creating the URL, but I parse the URL from XML content and I
>  want to urlencode it. Also, I am looking to preserve all the reserved
>  characters in the URL and not just '?' or '&'.

http://www.google.com/search?q=url+encoding+site%3Aapi.drupal.org leads 
you to two api functions url [1] and drupal_urlencode [2].  Are these 
what you need?

[1] http://api.drupal.org/api/function/url
[2] http://api.drupal.org/api/function/drupal_urlencode

-- http://www.give-me-an-offer.com

More information about the development mailing list