Great, that works. I didn't quite follow you at first, but now I do.
%26 will encode into %2526 (%25 is the % character), so %2526 will
then actually decode into %26 - which is what I want.
Perfect - thanks.
On May 27, 5:37 pm, Jehiah Czebotar <
jeh...@bit.ly> wrote:
> David, if you want to send the user tohttp://
www.company.com/?category=Action%26Adventureyou need to URL encode that whole string when making the shorten request.
>
> --
> Jehiah
>
> On May 27, 2011, at 6:24 PM, DR <
da...@davidrepas.com> wrote:
>
>
>
>
>
>
>
> > I'm attempting to shorten a URL that contains a variable with an
> > ampersand in the value. For example, the ?category=Action&Adventure
>
> > Of course, I can URL-encode the value before sending it to the
bit.ly
> > API - unfortunately,
bit.ly will decode the URL when the user opens
> > the shortlink.
>
> > So instead of directing the user to:
> >
http://www.company.com/?category=Action%26Adventure(which is what I