Decoding QueryString

Results 1 to 3 of 3

Thread: Decoding QueryString

  1. #1
    Join Date
    Dec 1969

    Default Decoding QueryString

    URLEncode simply encode the special character, But I need a fuction which will do just the opposite of encoding. For example <BR><BR>if the QueryString is like the following: <BR>names=mita%2Cjohn%2CLucy&phone=%2803222%29-753983 <BR><BR>then tell me how to convert the QueryString so that it looks like the following: <BR>names=mita,john,lucy&phone=(03222)-753983 <BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default There's not one.

    Not directly. However, if you do:<BR>strNames = Request.QueryString("names")<BR>Then it will be implicitly decoded...<BR><BR>Craig.

  3. #3
    Join Date
    Dec 1969

    Default If you really need to...

    explicitly decode querystrings (I can&#039;t think why though) you could stick the Javascript function unescape() in a wrapper function and call that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts