-
Notifications
You must be signed in to change notification settings - Fork 476
Closed
Labels
Description
Context: Microsoft JScript on Windows Server 2008 R2 64bit
var url = "http://www.google.com.hk/search?q=pennytel%20downloads&sa=%20%CB%D1%20%CB%F7%20&forid=1&prog=aff&ie=GB2312&oe=GB2312&safe=active&source=sdo_sb_html&hl=zh-CN";
var x = new URI(url);
var rMap = x.search(true);
When the .search is executed I get
Microsoft JScript runtime error: The URI to be decoded is not a valid encoding
The break occurs here
d.decodeQuery = function (a) {
return d.decode((a + "").replace(/+/g, "%20"))
};
and it's probably complaining about the "sa=%20%CB%D1%20%CB%F7%20"
. What's amiss here? Is it fixable? Is it an encoding issue or something else?