{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/1045","labels_url":"https://api.github.com/repos/square/retrofit/issues/1045/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/1045/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/1045/events","html_url":"https://github.com/square/retrofit/issues/1045","id":103994495,"number":1045,"title":"[Retrofit 2.0] Improper encoding of path segment","user":{"login":"tadfisher","id":129148,"avatar_url":"https://avatars.githubusercontent.com/u/129148?v=3","gravatar_id":"","url":"https://api.github.com/users/tadfisher","html_url":"https://github.com/tadfisher","followers_url":"https://api.github.com/users/tadfisher/followers","following_url":"https://api.github.com/users/tadfisher/following{/other_user}","gists_url":"https://api.github.com/users/tadfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/tadfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadfisher/subscriptions","organizations_url":"https://api.github.com/users/tadfisher/orgs","repos_url":"https://api.github.com/users/tadfisher/repos","events_url":"https://api.github.com/users/tadfisher/events{/privacy}","received_events_url":"https://api.github.com/users/tadfisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/square/retrofit/milestones/2","html_url":"https://github.com/square/retrofit/milestones/2.0","labels_url":"https://api.github.com/repos/square/retrofit/milestones/2/labels","id":374620,"number":2,"title":"2.0","description":"","creator":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":22,"state":"open","created_at":"2013-07-10T00:10:48Z","updated_at":"2015-09-11T22:26:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-31T06:10:14Z","updated_at":"2015-09-12T01:05:50Z","closed_at":null,"body":"Here's a test case:\r\n\r\nhttps://android.api.simple.com/atm-api/nearest/45.529801,-122.683633 (works)\r\n\r\nRetrofit encodes as:\r\n\r\nhttps://android.api.simple.com/atm-api/nearest/45.529801%2C-122.683633 (doesn't work)\r\n\r\nAccording to [this guide](http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding) the `,` (comma) character should be allowed unencoded in the path.\r\n\r\nEasily worked around with `encoded=false`."},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/139694443","html_url":"https://github.com/square/retrofit/issues/1045#issuecomment-139694443","issue_url":"https://api.github.com/repos/square/retrofit/issues/1045","id":139694443,"user":{"login":"tadfisher","id":129148,"avatar_url":"https://avatars.githubusercontent.com/u/129148?v=3","gravatar_id":"","url":"https://api.github.com/users/tadfisher","html_url":"https://github.com/tadfisher","followers_url":"https://api.github.com/users/tadfisher/followers","following_url":"https://api.github.com/users/tadfisher/following{/other_user}","gists_url":"https://api.github.com/users/tadfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/tadfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadfisher/subscriptions","organizations_url":"https://api.github.com/users/tadfisher/orgs","repos_url":"https://api.github.com/users/tadfisher/repos","events_url":"https://api.github.com/users/tadfisher/events{/privacy}","received_events_url":"https://api.github.com/users/tadfisher/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T01:05:50Z","updated_at":"2015-09-12T01:05:50Z","body":"Yep, sorry. Here's the endpoint definition:\r\n\r\n```java\r\n    @GET(\"/atm-api/nearest/{coordinate}\")\r\n    Call<AtmLocation> getNearestAtmLocation(@Path(value = \"coordinate\", encoded = true) Coordinate coordinate);\r\n```\r\n\r\n`Coordinate` is a converted using this `toString` implementation:\r\n\r\n```java\r\nreturn String.format(\"%.6f,%.6f\", latitude, longitude)\r\n```"}}