I tried this way
But I got the error as
The function urlEncode must be used with a prefix when a default namespace is not specified
Raihan Jamal wrote:In my app there are some string that has special characters like + and I am sending the query back to solr... So that spcecial character is causing problem.. So that's why I have to encode that string so that solr accept that query parameter...
Normally a browser will automatically URL-encode parameters sent from a <form> element. If that isn't happening then that means you aren't "sending the query back to solr" from a <form> element from the browser. Which means that "sending back to solr" is being done in some other way from the browser. Would you like to fill us in on the details? All of the details would be nice, so we don't have to have this sort of back-and-forth again.
and they are hyperlinked... If we click on this hyperlink then all the data related to that particular data will show up in my browser... So in this case if I click on any data that has + sign then I am not getting any result back... But If I try to query the solr from its admin using Mac%2B then I am getting the result back...