{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/5872","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5872/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5872/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5872/events","html_url":"https://github.com/elixir-lang/elixir/issues/5872","id":213884092,"number":5872,"title":"URI.encode Will not Encode URL","user":{"login":"andrewcottage","id":4549986,"avatar_url":"https://avatars3.githubusercontent.com/u/4549986?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewcottage","html_url":"https://github.com/andrewcottage","followers_url":"https://api.github.com/users/andrewcottage/followers","following_url":"https://api.github.com/users/andrewcottage/following{/other_user}","gists_url":"https://api.github.com/users/andrewcottage/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewcottage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewcottage/subscriptions","organizations_url":"https://api.github.com/users/andrewcottage/orgs","repos_url":"https://api.github.com/users/andrewcottage/repos","events_url":"https://api.github.com/users/andrewcottage/events{/privacy}","received_events_url":"https://api.github.com/users/andrewcottage/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-13T20:14:46Z","updated_at":"2017-03-13T21:54:01Z","closed_at":"2017-03-13T21:43:34Z","body":"### Environment\r\n\r\nElixir 1.4.2, Erlang 19.2\r\nUbuntu 16.10\r\n\r\n### Current behavior\r\n\r\n```\r\nURI.encode(\"http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html\")\r\n```\r\n\r\nReturns\r\n```\r\n\"http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html\"\r\n```\r\n\r\n### Expected behavior\r\n```\r\nURI.encode(\"http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html\")\r\n```\r\n\r\nShould Return\r\n```\r\n\"http%3A%2F%2Fwww.brookstone.com%2Fpd%2Ffitbit-charge-2-heart-rate-and-fitness-wristband%2F320397p.html\"\r\n```\r\n\r\nand furthermore If I run the URL through `:http_uri.encode` it returns the expected output.\r\n```\r\n:http_uri.encode 'http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html'\r\n'http%3A%2F%2Fwww.brookstone.com%2Fpd%2Ffitbit-charge-2-heart-rate-and-fitness-wristband%2F320397p.html'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/286255832","html_url":"https://github.com/elixir-lang/elixir/issues/5872#issuecomment-286255832","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5872","id":286255832,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars3.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2017-03-13T21:54:01Z","updated_at":"2017-03-13T21:54:01Z","body":"Thanks for filing an issue. The docs have also been improved.\n"}}
{"actor":{"display_login":"josevalim"}}