appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
950 stars 98 forks source link

Unable to perform hashtag search with non-ASCII characters #210

Closed paulyhedral closed 12 years ago

paulyhedral commented 12 years ago

If I try to perform a hashtag search using non-ASCII characters, I get a 404:

$ curl https://alpha-api.app.net/stream/0/posts/tag/ { "error": { "code": 404, "message": "Not found" } }

If I attempt to %-encode the characters, it's still a 404:

$ curl https://alpha-api.app.net/stream/0/posts/tag/%F0%9F%98%98 { "error": { "code": 404, "message": "Not found" } }

mthurman commented 12 years ago

 right now isn't a valid hashtag since it's not a letter or digit. Valid unicode hashtags do work with this endpoint i.e.: https://alpha-api.app.net/stream/0/posts/tag/พล (this example does show that we've got some issues with some international alphabets, but I don't expect  will ever be a valid hashtag since it's a symbol)