Weird... encodeURI does the same thing. Check it:
var str:String = encodeURI("dude man+");
Notice that with encode or encodeURI, you'll get:
dude%20man+
...bleh! That dang + should be %2D instead.
BTW, for background context, I'm first base64'ing some XML, and then
encoding it to send as a GET request param. If you know of a better
way, I'm all ears.
On 4/24/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> Nope. I'm using encode.
>
> On 4/24/07, Michael Wills <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> > Are you using encodeURI? You may need to use encodeURIComponent instead.
> > Just checking briefly on the JS versions.
> >
> > Michael
> >
> > Jesse Warden wrote:
> >
> >
> >
> > Running encode on a String seems to be missing the +. For example, a
> > space " " becomes %20 like expected. But, a + is not becoming %2D...
> > anyone know why?
> >
> >
> >
>