{"action":"opened","issue":{"url":"https://api.github.com/repos/jkitchin/scopus/issues/5","repository_url":"https://api.github.com/repos/jkitchin/scopus","labels_url":"https://api.github.com/repos/jkitchin/scopus/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/jkitchin/scopus/issues/5/comments","events_url":"https://api.github.com/repos/jkitchin/scopus/issues/5/events","html_url":"https://github.com/jkitchin/scopus/issues/5","id":178014216,"number":5,"title":"UnicodeEncodeError with scopus_affiliation.py","user":{"login":"Michael-E-Rose","id":7095926,"avatar_url":"https://avatars.githubusercontent.com/u/7095926?v=3","gravatar_id":"","url":"https://api.github.com/users/Michael-E-Rose","html_url":"https://github.com/Michael-E-Rose","followers_url":"https://api.github.com/users/Michael-E-Rose/followers","following_url":"https://api.github.com/users/Michael-E-Rose/following{/other_user}","gists_url":"https://api.github.com/users/Michael-E-Rose/gists{/gist_id}","starred_url":"https://api.github.com/users/Michael-E-Rose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michael-E-Rose/subscriptions","organizations_url":"https://api.github.com/users/Michael-E-Rose/orgs","repos_url":"https://api.github.com/users/Michael-E-Rose/repos","events_url":"https://api.github.com/users/Michael-E-Rose/events{/privacy}","received_events_url":"https://api.github.com/users/Michael-E-Rose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T09:45:55Z","updated_at":"2016-09-20T09:45:55Z","closed_at":null,"body":"There still seems to be a unicode issue in python 2.7 with certain authors.\r\n\r\nThis time it's with https://www.scopus.com/authid/detail.uri?authorId=6602884607\r\n\r\n```\r\n>>> from scopus.scopus_author import ScopusAuthor\r\n>>> au = ScopusAuthor(\"6602884607\", refresh=True)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.7/dist-packages/scopus/scopus_author.py\", line 178, in __init__\r\n    if el is not None]]\r\n  File \"/usr/local/lib/python2.7/dist-packages/scopus/scopus_affiliation.py\", line 81, in __init__\r\n    f.write(resp.text)\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xe4' in position 1299: ordinal not in range(128)\r\n```"}}
{"actor":{"display_login":"Michael-E-Rose"}}