escape in ASP

Discussion in 'ASP General' started by JigMan, Jul 22, 2003.

  1. JigMan

    JigMan Guest

    When chucking data in a cookie you cannot use certain characters (in
    this example ‘ : ‘ ).

    To get around this you use escape and unescape. Trying to use the
    escape as such:

    Response.Cookies("Lines")("URL4") = escape("http://www.ASP101.com")

    Gives the following result:

    URL4=http%3A//www.ASP101.com

    Which I don't think does anything to help. So using it like this:

    Response.Cookies("Lines")("URL4") = "escape(http://www.ASP101.com)"

    Gives the following result:

    URL4=escape(http://www.ASP101.com)

    Which is the correct result apart from the ‘escape' actually
    appearing. Any ideas how to get around this?
    JigMan, Jul 22, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tassos

    escape a whole regex

    Tassos, Dec 12, 2003, in forum: Perl
    Replies:
    2
    Views:
    518
    Jim Gibson
    Dec 12, 2003
  2. Danny

    Escape Function in ASP.NET?

    Danny, Jan 15, 2004, in forum: ASP .Net
    Replies:
    10
    Views:
    42,785
    Peter O'Reilly
    Jan 15, 2004
  3. =?Utf-8?B?Q29vbEtpd2lCbG9rZQ==?=

    URL Escape Character Problem (Bug in ASP.NET??)

    =?Utf-8?B?Q29vbEtpd2lCbG9rZQ==?=, Mar 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    4,688
    Joerg Jooss
    Mar 10, 2005
  4. slomo
    Replies:
    5
    Views:
    1,521
    Duncan Booth
    Dec 2, 2007
  5. JigMan

    escape in ASP

    JigMan, Jul 22, 2003, in forum: ASP General
    Replies:
    1
    Views:
    111
    Atrax
    Jul 22, 2003
Loading...

Share This Page