Results 1 to 5 of 5

Thread: [RESOLVED] Apostrophe in URL parameter

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Resolved [RESOLVED] Apostrophe in URL parameter

    Hi,

    How can I pass an apostrophe in a URL that I want to use in another page? For example, the following causes an error when I try to load a new page:
    VB Code:
    1. www.whaterverpage.aspx?LastName=O'Hara

    It seems that there should be encoding for the apostrophe (') but I can't figure out what it is.

  2. #2
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Apostrophe in URL parameter

    the same way you pass spaces with %20, try %60

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    sevenhalo ...

    Thanks, but that looks like a strange apostrophe on the other side .... whereas a space appears as a "normal" space after the encoding. Anyone else have an idea how to do this?

  4. #4
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Apostrophe in URL parameter

    %27, sorry. I was using that one with the ~ above it

    Edit: AKA the accent, but I don't know these things.
    Last edited by sevenhalo; Dec 22nd, 2005 at 02:41 PM.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    sevenhalo ....

    Perfect!

    Thanks!

    OneSource

Posting Permissions

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



Click Here to Expand Forum to Full Width