I've tried these too, but if I have a link that has a url encoded character in it (say %2F for the "/" character), decodeURI doesn't handle it (http://livedocs.adobe.com/flex/3/langref/package.html#decodeURI%28%29). I've also tried decodeURIComponent, which *does* decode it into a '/' character but then the link no longer works in the browser (since it's expecting a single url-encoded value - %2F)
The problem seems to be that somewhere along the line, encodeURI might get called on the string but either
a) I've already encoded the character and encodeURI *does* encode the "%" character (which is already being used for an encoded character) or
b) I leave the character as is (after using decodeURIComponent to return it to its non-encoded form), but it's one of the characters that doesn't get encoded by encodeURI (but would get encoded by encodeURIComponent) - and I'm left with the unecoded version in my href value.
Is there a way to either not have any encoding function get called when links are clicked on or have it call encodeURIComponent on the query string part of the URL instead of encodeURI? (I understand that if you called encodeURIComponent on the whole URL, it would break the actual host/path part)