{"action":"created","issue":{"url":"https://api.github.com/repos/biocore/qiita/issues/1894","repository_url":"https://api.github.com/repos/biocore/qiita","labels_url":"https://api.github.com/repos/biocore/qiita/issues/1894/labels{/name}","comments_url":"https://api.github.com/repos/biocore/qiita/issues/1894/comments","events_url":"https://api.github.com/repos/biocore/qiita/issues/1894/events","html_url":"https://github.com/biocore/qiita/issues/1894","id":164891099,"number":1894,"title":"natsorted fails with UnicodeDecodeError","user":{"login":"antgonza","id":2014559,"avatar_url":"https://avatars.githubusercontent.com/u/2014559?v=3","gravatar_id":"","url":"https://api.github.com/users/antgonza","html_url":"https://github.com/antgonza","followers_url":"https://api.github.com/users/antgonza/followers","following_url":"https://api.github.com/users/antgonza/following{/other_user}","gists_url":"https://api.github.com/users/antgonza/gists{/gist_id}","starred_url":"https://api.github.com/users/antgonza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antgonza/subscriptions","organizations_url":"https://api.github.com/users/antgonza/orgs","repos_url":"https://api.github.com/users/antgonza/repos","events_url":"https://api.github.com/users/antgonza/events{/privacy}","received_events_url":"https://api.github.com/users/antgonza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/biocore/qiita/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/biocore/qiita/milestones/11","html_url":"https://github.com/biocore/qiita/milestones/Alpha%200.3","labels_url":"https://api.github.com/repos/biocore/qiita/milestones/11/labels","id":1510604,"number":11,"title":"Alpha 0.3","description":"","creator":{"login":"antgonza","id":2014559,"avatar_url":"https://avatars.githubusercontent.com/u/2014559?v=3","gravatar_id":"","url":"https://api.github.com/users/antgonza","html_url":"https://github.com/antgonza","followers_url":"https://api.github.com/users/antgonza/followers","following_url":"https://api.github.com/users/antgonza/following{/other_user}","gists_url":"https://api.github.com/users/antgonza/gists{/gist_id}","starred_url":"https://api.github.com/users/antgonza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antgonza/subscriptions","organizations_url":"https://api.github.com/users/antgonza/orgs","repos_url":"https://api.github.com/users/antgonza/repos","events_url":"https://api.github.com/users/antgonza/events{/privacy}","received_events_url":"https://api.github.com/users/antgonza/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":60,"state":"open","created_at":"2016-01-16T23:50:44Z","updated_at":"2016-07-18T19:42:54Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-07-11T17:28:57Z","updated_at":"2016-07-18T23:06:57Z","closed_at":null,"body":"We are using natsorted in two lines in our code. [In this instance](https://github.com/biocore/qiita/blob/26bcb12741ed525c69a4fcf43e7cce5c251c4b0d/qiita_pet/handlers/api_proxy/sample_template.py#L286), it will fail with a UnicodeDecodeError if the values have non valid chars. "},"comment":{"url":"https://api.github.com/repos/biocore/qiita/issues/comments/233485637","html_url":"https://github.com/biocore/qiita/issues/1894#issuecomment-233485637","issue_url":"https://api.github.com/repos/biocore/qiita/issues/1894","id":233485637,"user":{"login":"ElDeveloper","id":375307,"avatar_url":"https://avatars.githubusercontent.com/u/375307?v=3","gravatar_id":"","url":"https://api.github.com/users/ElDeveloper","html_url":"https://github.com/ElDeveloper","followers_url":"https://api.github.com/users/ElDeveloper/followers","following_url":"https://api.github.com/users/ElDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/ElDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/ElDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElDeveloper/subscriptions","organizations_url":"https://api.github.com/users/ElDeveloper/orgs","repos_url":"https://api.github.com/users/ElDeveloper/repos","events_url":"https://api.github.com/users/ElDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/ElDeveloper/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T23:06:57Z","updated_at":"2016-07-18T23:06:57Z","body":"@antgonza do you know of any characters that can trigger this error, I've been trying to reproduce this in an interactive session without any luck:\r\n\r\nI was hoping this would fail or raise an error:\r\n\r\n```python\r\nIn [1]: from natsort import natsorted\r\n\r\nIn [3]: natsorted(['Yóshiki', 'Yoshiki']\r\n   ...: )\r\nOut[3]: ['Yoshiki', 'Y\\xc3\\xb3shiki']\r\n```\r\n\r\nThen I tried a simpler example, and judging by the hex values of the characters, it seems like it is getting the order \"right\".\r\n\r\n```python\r\nIn [10]: natsorted(['ë', 'é', 'e'])\r\nOut[10]: ['e', '\\xc3\\xa9', '\\xc3\\xab']\r\n```"}}
{"actor":{"display_login":"ElDeveloper"}}