{"action":"created","issue":{"url":"https://api.github.com/repos/aozorahack/aozora-cli/issues/22","repository_url":"https://api.github.com/repos/aozorahack/aozora-cli","labels_url":"https://api.github.com/repos/aozorahack/aozora-cli/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/aozorahack/aozora-cli/issues/22/comments","events_url":"https://api.github.com/repos/aozorahack/aozora-cli/issues/22/events","html_url":"https://github.com/aozorahack/aozora-cli/issues/22","id":197888062,"number":22,"title":"aozora book > xxx.txt　のとき　エラーが発生しました","user":{"login":"xisang233","id":18749991,"avatar_url":"https://avatars.githubusercontent.com/u/18749991?v=3","gravatar_id":"","url":"https://api.github.com/users/xisang233","html_url":"https://github.com/xisang233","followers_url":"https://api.github.com/users/xisang233/followers","following_url":"https://api.github.com/users/xisang233/following{/other_user}","gists_url":"https://api.github.com/users/xisang233/gists{/gist_id}","starred_url":"https://api.github.com/users/xisang233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xisang233/subscriptions","organizations_url":"https://api.github.com/users/xisang233/orgs","repos_url":"https://api.github.com/users/xisang233/repos","events_url":"https://api.github.com/users/xisang233/events{/privacy}","received_events_url":"https://api.github.com/users/xisang233/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-28T17:27:21Z","updated_at":"2016-12-28T17:40:06Z","closed_at":null,"body":"普通にターミナルで\r\n> aozora  book\r\n\r\nの時は、結果が出てくるんです。\r\nしかし\r\n> aozora book > a.txt\r\n\r\nで、結果を保存したいとき、ダメでした。\r\nosは　ubuntu14.04とdebian 8.6。また、pip install でインストールしたのです。\r\n\r\nエラー：\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/aozora\", line 10, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/bin/aozora\", line 7, in main\r\n    return aozoracli.cli()\r\n  File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 716, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 1060, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 889, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/aozoracli/cli.py\", line 38, in books\r\n    _print(res, output)\r\n  File \"/usr/local/lib/python2.7/dist-packages/aozoracli/cli.py\", line 79, in _print\r\n    print(output)\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 34-36: ordinal not in range(128)\r\n"},"comment":{"url":"https://api.github.com/repos/aozorahack/aozora-cli/issues/comments/269511796","html_url":"https://github.com/aozorahack/aozora-cli/issues/22#issuecomment-269511796","issue_url":"https://api.github.com/repos/aozorahack/aozora-cli/issues/22","id":269511796,"user":{"login":"xisang233","id":18749991,"avatar_url":"https://avatars.githubusercontent.com/u/18749991?v=3","gravatar_id":"","url":"https://api.github.com/users/xisang233","html_url":"https://github.com/xisang233","followers_url":"https://api.github.com/users/xisang233/followers","following_url":"https://api.github.com/users/xisang233/following{/other_user}","gists_url":"https://api.github.com/users/xisang233/gists{/gist_id}","starred_url":"https://api.github.com/users/xisang233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xisang233/subscriptions","organizations_url":"https://api.github.com/users/xisang233/orgs","repos_url":"https://api.github.com/users/xisang233/repos","events_url":"https://api.github.com/users/xisang233/events{/privacy}","received_events_url":"https://api.github.com/users/xisang233/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T17:40:06Z","updated_at":"2016-12-28T17:40:06Z","body":"Python2にはこのような問題が多いですね。Python3でやり直せば、、、こういった問題が起こさないでしょう。。。(大変お手数ですが。。。)"}}
{"actor":{"display_login":"xisang233"}}