Esquire Theme by Matthew Buchanan
Social icons by Tim van Damme



URLs are not a subset of URIs

You have probably seen or read that URL’s are a subset of URI’s. In theory they are but in practice I have found that not to be the case. 

See my recent Stackoverflow Post on this. URL’s in the wild allow for characters in the Excluded US-ASCII Charset. URI’s do not!

I believe this is most likely because URL’s came before URI. User agents and web frameworks remain backward compatible with old URL’s so be wary of this.

Modern URL’s should be a subset of URI’s. So when constructing a URL its always best to use URI escaping rules when constructing a URL.