{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/8332","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/8332/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/8332/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/8332/events","html_url":"https://github.com/cakephp/cakephp/issues/8332","id":136031000,"number":8332,"title":"3.2.x UTF-8 routing","user":{"login":"codercms","id":4526911,"avatar_url":"https://avatars.githubusercontent.com/u/4526911?v=3","gravatar_id":"","url":"https://api.github.com/users/codercms","html_url":"https://github.com/codercms","followers_url":"https://api.github.com/users/codercms/followers","following_url":"https://api.github.com/users/codercms/following{/other_user}","gists_url":"https://api.github.com/users/codercms/gists{/gist_id}","starred_url":"https://api.github.com/users/codercms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codercms/subscriptions","organizations_url":"https://api.github.com/users/codercms/orgs","repos_url":"https://api.github.com/users/codercms/repos","events_url":"https://api.github.com/users/codercms/events{/privacy}","received_events_url":"https://api.github.com/users/codercms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/80","html_url":"https://github.com/cakephp/cakephp/milestones/3.2.4","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/80/labels","id":1595817,"number":80,"title":"3.2.4","description":"Bugfixes and minor features for the 3.2 line.","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":11,"state":"open","created_at":"2016-02-21T20:15:21Z","updated_at":"2016-02-24T12:33:02Z","due_on":"2016-03-06T05:00:00Z","closed_at":null},"comments":1,"created_at":"2016-02-24T11:19:01Z","updated_at":"2016-02-24T12:43:17Z","closed_at":null,"body":"Hello, i have a following route\r\n```php\r\n$routes->connect('/test/:slug', ['controller' => 'Pages', 'action' => 'display', 'test'], [\r\n    'pass' => ['slug'],\r\n    'slug' => '[A-zА-я\\-\\ ]+'\r\n]);\r\n```\r\nSo, when i trying to access this URL - `/test/слог` or `/test/bla-blan-тест`\r\nI get an error - `Error: A route matching \"/test/%D1%81%D0%BB%D0%BE%D0%B3\" could not be found.` or `Error: A route matching \"/test/bla-bla-%D1%82%D0%B5%D1%81%D1%82\" could not be found.`\r\n\r\nSo, maybe router should `urldecode` URL before parsing?\r\nP.S. I am using DashedRoute"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/188236088","html_url":"https://github.com/cakephp/cakephp/issues/8332#issuecomment-188236088","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/8332","id":188236088,"user":{"login":"ndm2","id":5031606,"avatar_url":"https://avatars.githubusercontent.com/u/5031606?v=3","gravatar_id":"","url":"https://api.github.com/users/ndm2","html_url":"https://github.com/ndm2","followers_url":"https://api.github.com/users/ndm2/followers","following_url":"https://api.github.com/users/ndm2/following{/other_user}","gists_url":"https://api.github.com/users/ndm2/gists{/gist_id}","starred_url":"https://api.github.com/users/ndm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndm2/subscriptions","organizations_url":"https://api.github.com/users/ndm2/orgs","repos_url":"https://api.github.com/users/ndm2/repos","events_url":"https://api.github.com/users/ndm2/events{/privacy}","received_events_url":"https://api.github.com/users/ndm2/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T12:43:17Z","updated_at":"2016-02-24T12:43:17Z","body":"The URL already is being URL decoded, but it's being passed unencoded to the exception.\r\n\r\nThe actual problem is more likely your `А-я` range. Not sure whether and how PCRE is ment to support this when not using the `u` flag, but given that it works fine with the `u` flag, and that `A-я` for example seems to work (where `A` is ASCII), I'd guess that such ranges simply cannot be relied on when not using the unicode mode."}}