I am trying to pass a string via HTTP request which has one of the character as % in the URL query string.
url = url + "?q=" + str + "&block=" + block; // str contains the '%' character
But on the ColdFusion page where I'm sending this information is returning following error:
Element Q is undefined in URL.
Could you please tell me that how can I encode the % sign in a URL?