{"action":"created","issue":{"url":"https://api.github.com/repos/blaze/dask/issues/715","labels_url":"https://api.github.com/repos/blaze/dask/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/blaze/dask/issues/715/comments","events_url":"https://api.github.com/repos/blaze/dask/issues/715/events","html_url":"https://github.com/blaze/dask/issues/715","id":106799762,"number":715,"title":"Encoding issues in dask.bag","user":{"login":"cowlicks","id":598099,"avatar_url":"https://avatars.githubusercontent.com/u/598099?v=3","gravatar_id":"","url":"https://api.github.com/users/cowlicks","html_url":"https://github.com/cowlicks","followers_url":"https://api.github.com/users/cowlicks/followers","following_url":"https://api.github.com/users/cowlicks/following{/other_user}","gists_url":"https://api.github.com/users/cowlicks/gists{/gist_id}","starred_url":"https://api.github.com/users/cowlicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowlicks/subscriptions","organizations_url":"https://api.github.com/users/cowlicks/orgs","repos_url":"https://api.github.com/users/cowlicks/repos","events_url":"https://api.github.com/users/cowlicks/events{/privacy}","received_events_url":"https://api.github.com/users/cowlicks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-16T15:35:57Z","updated_at":"2015-09-16T15:47:50Z","closed_at":null,"body":"This will raise an exception in decode sequence that the `'ascii'` codec can't decode some character. This is because the data is unicode.\r\n```python\r\nIn [1]: ! wget wget http://data.githubarchive.org/2015-01-01-15.json.gz\r\n...\r\n\r\nIn [2]: import dask.bag as db; import json\r\n\r\nIn [3]: a = db.from_filenames('2015-01-01-15.json.gz').map(json.loads)\r\n\r\nIn [4]: a.pluck('type').compute()\r\n```"},"comment":{"url":"https://api.github.com/repos/blaze/dask/issues/comments/140782997","html_url":"https://github.com/blaze/dask/issues/715#issuecomment-140782997","issue_url":"https://api.github.com/repos/blaze/dask/issues/715","id":140782997,"user":{"login":"cowlicks","id":598099,"avatar_url":"https://avatars.githubusercontent.com/u/598099?v=3","gravatar_id":"","url":"https://api.github.com/users/cowlicks","html_url":"https://github.com/cowlicks","followers_url":"https://api.github.com/users/cowlicks/followers","following_url":"https://api.github.com/users/cowlicks/following{/other_user}","gists_url":"https://api.github.com/users/cowlicks/gists{/gist_id}","starred_url":"https://api.github.com/users/cowlicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowlicks/subscriptions","organizations_url":"https://api.github.com/users/cowlicks/orgs","repos_url":"https://api.github.com/users/cowlicks/repos","events_url":"https://api.github.com/users/cowlicks/events{/privacy}","received_events_url":"https://api.github.com/users/cowlicks/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T15:47:50Z","updated_at":"2015-09-16T15:47:50Z","body":"Here is a better test\r\n```python\r\nimport dask.bag as db\r\nfrom dask.utils import tmpfile\r\ndef test_gh715():\r\n    data = 'ákåðiæ¶'\r\n    with tmpfile() as fn:\r\n        with open(fn, 'w') as f:\r\n            f.write(data)\r\n        a = db.from_filenames(fn)\r\n        a.compute()\r\n```"}}