{"action":"created","issue":{"url":"https://api.github.com/repos/bpython/bpython/issues/487","labels_url":"https://api.github.com/repos/bpython/bpython/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/bpython/bpython/issues/487/comments","events_url":"https://api.github.com/repos/bpython/bpython/issues/487/events","html_url":"https://github.com/bpython/bpython/issues/487","id":58091586,"number":487,"title":"import broken for non-ascii names","user":{"login":"sebastinas","id":114613,"avatar_url":"https://avatars.githubusercontent.com/u/114613?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastinas","html_url":"https://github.com/sebastinas","followers_url":"https://api.github.com/users/sebastinas/followers","following_url":"https://api.github.com/users/sebastinas/following{/other_user}","gists_url":"https://api.github.com/users/sebastinas/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastinas/subscriptions","organizations_url":"https://api.github.com/users/sebastinas/orgs","repos_url":"https://api.github.com/users/sebastinas/repos","events_url":"https://api.github.com/users/sebastinas/events{/privacy}","received_events_url":"https://api.github.com/users/sebastinas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-18T16:34:12Z","updated_at":"2015-02-18T21:32:58Z","closed_at":null,"body":"Python 2 with curtsies:\r\n\r\n```pycon\r\n>>> __import__('fð')\r\nTraceback (most recent call last):\r\n  File \"<input>\", line 1, in <module>\r\n  File \"/home/sebastian/development/bpython/bpython/curtsiesfrontend/repl.py\", line 428, in new_import\r\n    fromlist=fromlist, level=level)\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xf0' in position 1: ordinal not in range(128)\r\n```\r\n\r\nThis works in Python 3 with curtsies and in plain Python 2."},"comment":{"url":"https://api.github.com/repos/bpython/bpython/issues/comments/74952453","html_url":"https://github.com/bpython/bpython/issues/487#issuecomment-74952453","issue_url":"https://api.github.com/repos/bpython/bpython/issues/487","id":74952453,"user":{"login":"sebastinas","id":114613,"avatar_url":"https://avatars.githubusercontent.com/u/114613?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastinas","html_url":"https://github.com/sebastinas","followers_url":"https://api.github.com/users/sebastinas/followers","following_url":"https://api.github.com/users/sebastinas/following{/other_user}","gists_url":"https://api.github.com/users/sebastinas/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastinas/subscriptions","organizations_url":"https://api.github.com/users/sebastinas/orgs","repos_url":"https://api.github.com/users/sebastinas/repos","events_url":"https://api.github.com/users/sebastinas/events{/privacy}","received_events_url":"https://api.github.com/users/sebastinas/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T21:32:58Z","updated_at":"2015-02-18T21:32:58Z","body":"No, it's not."}}