{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/17627","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/17627/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/17627/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/17627/events","html_url":"https://github.com/dotnet/corefx/issues/17627","id":217719387,"number":17627,"title":"[Netfx]: HttpUtility.UrlDecodeToBytes doesn't decode correctly when having a UTF8 encoded character.","user":{"login":"safern","id":22899328,"avatar_url":"https://avatars2.githubusercontent.com/u/22899328?v=3","gravatar_id":"","url":"https://api.github.com/users/safern","html_url":"https://github.com/safern","followers_url":"https://api.github.com/users/safern/followers","following_url":"https://api.github.com/users/safern/following{/other_user}","gists_url":"https://api.github.com/users/safern/gists{/gist_id}","starred_url":"https://api.github.com/users/safern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safern/subscriptions","organizations_url":"https://api.github.com/users/safern/orgs","repos_url":"https://api.github.com/users/safern/repos","events_url":"https://api.github.com/users/safern/events{/privacy}","received_events_url":"https://api.github.com/users/safern/received_events","type":"User","site_admin":false},"labels":[{"id":178058848,"url":"https://api.github.com/repos/dotnet/corefx/labels/area-System.Net","name":"area-System.Net","color":"d4c5f9","default":false},{"id":145399955,"url":"https://api.github.com/repos/dotnet/corefx/labels/bug","name":"bug","color":"207de5","default":true}],"state":"closed","locked":false,"assignee":{"login":"schen381","id":8537784,"avatar_url":"https://avatars2.githubusercontent.com/u/8537784?v=3","gravatar_id":"","url":"https://api.github.com/users/schen381","html_url":"https://github.com/schen381","followers_url":"https://api.github.com/users/schen381/followers","following_url":"https://api.github.com/users/schen381/following{/other_user}","gists_url":"https://api.github.com/users/schen381/gists{/gist_id}","starred_url":"https://api.github.com/users/schen381/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schen381/subscriptions","organizations_url":"https://api.github.com/users/schen381/orgs","repos_url":"https://api.github.com/users/schen381/repos","events_url":"https://api.github.com/users/schen381/events{/privacy}","received_events_url":"https://api.github.com/users/schen381/received_events","type":"User","site_admin":false},"assignees":[{"login":"schen381","id":8537784,"avatar_url":"https://avatars2.githubusercontent.com/u/8537784?v=3","gravatar_id":"","url":"https://api.github.com/users/schen381","html_url":"https://github.com/schen381","followers_url":"https://api.github.com/users/schen381/followers","following_url":"https://api.github.com/users/schen381/following{/other_user}","gists_url":"https://api.github.com/users/schen381/gists{/gist_id}","starred_url":"https://api.github.com/users/schen381/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schen381/subscriptions","organizations_url":"https://api.github.com/users/schen381/orgs","repos_url":"https://api.github.com/users/schen381/repos","events_url":"https://api.github.com/users/schen381/events{/privacy}","received_events_url":"https://api.github.com/users/schen381/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/corefx/milestones/4","html_url":"https://github.com/dotnet/corefx/milestone/4","labels_url":"https://api.github.com/repos/dotnet/corefx/milestones/4/labels","id":1248719,"number":4,"title":"2.0.0","description":".NET Core 2.0, next major release. The due date 5/10 is [ZBB](https://github.com/dotnet/corefx/issues/17619) and expected time of last FI from master into release branch. See [official release dates](https://github.com/dotnet/core/blob/master/roadmap.md) for details.","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars2.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":101,"closed_issues":7511,"state":"open","created_at":"2015-08-10T18:04:00Z","updated_at":"2017-05-05T00:15:25Z","due_on":"2017-05-10T07:00:00Z","closed_at":null},"comments":4,"created_at":"2017-03-28T23:11:02Z","updated_at":"2017-05-05T00:15:25Z","closed_at":"2017-05-05T00:15:25Z","body":"In full framework `HttpUtility.UrlDecodeToBytes` when the string to decode has a UTF8 encoded character e.g (%u0061 -> a) it wouldn't decode it and would leave it as it is.\r\n\r\nExample\r\n\r\n```cs\r\nstring encoded = \"http://127.0.0.1:8080/appDir/page.aspx?foo=b%u0061r\";\r\nConsole.WriteLine(Encoding.UTF8.GetString(HttpUtility.UrlDecodeToBytes(encoded, Encoding.UTF8)));\r\n```\r\n\r\nWould print out the same string and it should print: `\"http://127.0.0.1:8080/appDir/page.aspx?foo=bar\"`\r\n\r\ncc: @davidsh "}}
{"actor":{"display_login":"schen381"}}