{"action":"created","issue":{"url":"https://api.github.com/repos/tildeio/router.js/issues/178","repository_url":"https://api.github.com/repos/tildeio/router.js","labels_url":"https://api.github.com/repos/tildeio/router.js/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/tildeio/router.js/issues/178/comments","events_url":"https://api.github.com/repos/tildeio/router.js/issues/178/events","html_url":"https://github.com/tildeio/router.js/issues/178","id":133140729,"number":178,"title":"Router does not recognize poorly encoded dynamic segments","user":{"login":"seanjohnson08","id":1444384,"avatar_url":"https://avatars.githubusercontent.com/u/1444384?v=3","gravatar_id":"","url":"https://api.github.com/users/seanjohnson08","html_url":"https://github.com/seanjohnson08","followers_url":"https://api.github.com/users/seanjohnson08/followers","following_url":"https://api.github.com/users/seanjohnson08/following{/other_user}","gists_url":"https://api.github.com/users/seanjohnson08/gists{/gist_id}","starred_url":"https://api.github.com/users/seanjohnson08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanjohnson08/subscriptions","organizations_url":"https://api.github.com/users/seanjohnson08/orgs","repos_url":"https://api.github.com/users/seanjohnson08/repos","events_url":"https://api.github.com/users/seanjohnson08/events{/privacy}","received_events_url":"https://api.github.com/users/seanjohnson08/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-12T02:12:54Z","updated_at":"2016-02-12T19:02:23Z","closed_at":"2016-02-12T19:02:23Z","body":"In the app that I am currently maintaining, we have some external URLs that are coming in that are improperly escaped. These URLs have been out in the wild now for over 5 years, and there's not a whole lot we can do to change them.\r\n\r\nNormally I could work around this, or handle it on my side - but the router does not give me the means to do so. The router ends up actually throwing a JS Error (`URI Malformed`) and the entire app grinds to a halt then and there.\r\n\r\nHere's an example of a poorly encoded URL: `/compose-message/Parab%E9ns%20pelo%20seu%20novo%20cargol`\r\n\r\nThe key takeaway is that \"%E9\" - that is the result of calling `escape('é')`. I know that the router is doing the right thing by using the `URI` family of functions (they are UTF compliant) but would it be at all possible to either handle these poorly escaped URLs or give me some kind of hook into which I can handle them myself?\r\n\r\nI've written a test case that currently fails for this here: https://github.com/seanjohnson08/router.js/commit/a92c748947556653bd8df39460ffe948e61307fe\r\n\r\nThank you for any guidance."},"comment":{"url":"https://api.github.com/repos/tildeio/router.js/issues/comments/183451602","html_url":"https://github.com/tildeio/router.js/issues/178#issuecomment-183451602","issue_url":"https://api.github.com/repos/tildeio/router.js/issues/178","id":183451602,"user":{"login":"krisselden","id":61024,"avatar_url":"https://avatars.githubusercontent.com/u/61024?v=3","gravatar_id":"","url":"https://api.github.com/users/krisselden","html_url":"https://github.com/krisselden","followers_url":"https://api.github.com/users/krisselden/followers","following_url":"https://api.github.com/users/krisselden/following{/other_user}","gists_url":"https://api.github.com/users/krisselden/gists{/gist_id}","starred_url":"https://api.github.com/users/krisselden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisselden/subscriptions","organizations_url":"https://api.github.com/users/krisselden/orgs","repos_url":"https://api.github.com/users/krisselden/repos","events_url":"https://api.github.com/users/krisselden/events{/privacy}","received_events_url":"https://api.github.com/users/krisselden/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T19:02:23Z","updated_at":"2016-02-12T19:02:23Z","body":"please reopen on https://github.com/tildeio/route-recognizer"}}