Query strings with special characters

后端 未结 3 894
醉梦人生
醉梦人生 2020-12-07 03:14

How I can pass a query string with special characters?

For example I need to pass \"&\" inside my query string as below:

../solrresults.asp?mode=         


        
3条回答
  •  既然无缘
    2020-12-07 04:01

    After your comments, here is a solution in various scripting languages:

    There are different versions available for each scripting language. Here is a reference from w3schools:

    In JavaScript you can use the encodeURI() function. PHP has the rawurlencode() function and ASP has the Server.URLEncode() function.

    Reference: http://www.w3schools.com/tags/ref_urlencode.asp

提交回复
热议问题