{"action":"created","issue":{"url":"https://api.github.com/repos/Yelp/yelp-api/issues/118","repository_url":"https://api.github.com/repos/Yelp/yelp-api","labels_url":"https://api.github.com/repos/Yelp/yelp-api/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/yelp-api/issues/118/comments","events_url":"https://api.github.com/repos/Yelp/yelp-api/issues/118/events","html_url":"https://github.com/Yelp/yelp-api/issues/118","id":139705945,"number":118,"title":"php sample mishandles unicode characters in business ids","user":{"login":"butterfield","id":1356633,"avatar_url":"https://avatars.githubusercontent.com/u/1356633?v=3","gravatar_id":"","url":"https://api.github.com/users/butterfield","html_url":"https://github.com/butterfield","followers_url":"https://api.github.com/users/butterfield/followers","following_url":"https://api.github.com/users/butterfield/following{/other_user}","gists_url":"https://api.github.com/users/butterfield/gists{/gist_id}","starred_url":"https://api.github.com/users/butterfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/butterfield/subscriptions","organizations_url":"https://api.github.com/users/butterfield/orgs","repos_url":"https://api.github.com/users/butterfield/repos","events_url":"https://api.github.com/users/butterfield/events{/privacy}","received_events_url":"https://api.github.com/users/butterfield/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-09T21:30:57Z","updated_at":"2016-03-18T17:51:04Z","closed_at":null,"body":"When hitting the biz endpoint with a business id that has a special character in it (like ó), the sample does not encode the id properly in the url, resulting in a 400 response.\r\n\r\nSample output:\r\n\r\n3 businesses found, querying business info for the top result \"la-fusión-san-francisco-2\"\r\n\r\nPHP Fatal error:  Curl failed with error #400: {\"error\": {\"text\": \"Signature was invalid\", \"id\": \"INVALID_SIGNATURE\", \"description\": \"Invalid signature. Expected signature base string: GET\\u0026https%3A%2F%2Fapi.yelp.com%2Fv2%2Fbusiness%2Fla-fusi%25C3%25B3n-san-francisco-2\\u0026oauth_consumer_key%3DSjxGRtHjlhJ-LgJ6LOU1Ug%26oauth_nonce%3D3f7a515e4ae33a6fb4e360f617d0f970%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1457552415%26oauth_token%3DOy0ePIdCw7mqX6fJmVyKOPEZLwSRnBKs%26oauth_version%3D1.0\"}} in /nail/home/jeffreyb/pg/yelp-main/sample_php.php on line 81"},"comment":{"url":"https://api.github.com/repos/Yelp/yelp-api/issues/comments/198469228","html_url":"https://github.com/Yelp/yelp-api/issues/118#issuecomment-198469228","issue_url":"https://api.github.com/repos/Yelp/yelp-api/issues/118","id":198469228,"user":{"login":"mittonk","id":377123,"avatar_url":"https://avatars.githubusercontent.com/u/377123?v=3","gravatar_id":"","url":"https://api.github.com/users/mittonk","html_url":"https://github.com/mittonk","followers_url":"https://api.github.com/users/mittonk/followers","following_url":"https://api.github.com/users/mittonk/following{/other_user}","gists_url":"https://api.github.com/users/mittonk/gists{/gist_id}","starred_url":"https://api.github.com/users/mittonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mittonk/subscriptions","organizations_url":"https://api.github.com/users/mittonk/orgs","repos_url":"https://api.github.com/users/mittonk/repos","events_url":"https://api.github.com/users/mittonk/events{/privacy}","received_events_url":"https://api.github.com/users/mittonk/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T17:51:03Z","updated_at":"2016-03-18T17:51:03Z","body":"Yep, this breaks the PHP sample pretty thoroughly in many parts of the world."}}