Rushi's | Home on the web

TAG | decode

Apr/10

14

Encode,Decode URI in Javascript

Try running this piece of javascript, it would throw a “URI malformed” exception. javascript:alert(decodeURIComponent(escape(’http://rushis.com/®’))); The ® character is transformed to %AE, which is not a valid input to decodeURIComponent function. This issue is clearly evident in the latest prototype js 1.6 framework. _getHeaderJSON: function() { var json = this.getHeader(’X-JSON’); if (!json) return null; json = [...]

, , , , , , , , , , , , , , , ,

Find it!

Theme Design by devolux.org
Tweaked by Rushi