Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Helper methods for using URI.js against servers not understanding UTF-8 encoded URIs #10
This patch adds two new static functions - URI.iso8859 and URI.unicode - that replace the URI.encode and URI.decode refs with the old escape/unescape functions - and restores the default.
I have also added the two new static methods to the documentation.
// Cheers, Morten
I suppose so, yes, but this patch was written with the intent of using URI.js to enhance older applications, where everything will be ISO and adding doing .iso8859() to each url on such a system would be counterproductive.
The main concern with enabling URI().iso8859().unicode()... is the age old problem of applying the wrong thing in the wrong order, or to the wrong thing.
I would certainly not mind that syntax, but I do not think I will implement that.