{"action":"created","issue":{"url":"https://api.github.com/repos/raghur/easyblogger/issues/12","repository_url":"https://api.github.com/repos/raghur/easyblogger","labels_url":"https://api.github.com/repos/raghur/easyblogger/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/raghur/easyblogger/issues/12/comments","events_url":"https://api.github.com/repos/raghur/easyblogger/issues/12/events","html_url":"https://github.com/raghur/easyblogger/issues/12","id":304021308,"number":12,"title":"UnicodeEncodeError: 'ascii' codec can't encode character","user":{"login":"snakefromhell","id":13994156,"avatar_url":"https://avatars2.githubusercontent.com/u/13994156?v=4","gravatar_id":"","url":"https://api.github.com/users/snakefromhell","html_url":"https://github.com/snakefromhell","followers_url":"https://api.github.com/users/snakefromhell/followers","following_url":"https://api.github.com/users/snakefromhell/following{/other_user}","gists_url":"https://api.github.com/users/snakefromhell/gists{/gist_id}","starred_url":"https://api.github.com/users/snakefromhell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snakefromhell/subscriptions","organizations_url":"https://api.github.com/users/snakefromhell/orgs","repos_url":"https://api.github.com/users/snakefromhell/repos","events_url":"https://api.github.com/users/snakefromhell/events{/privacy}","received_events_url":"https://api.github.com/users/snakefromhell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-10T00:26:01Z","updated_at":"2018-04-28T19:49:28Z","closed_at":"2018-03-10T05:08:05Z","author_association":"NONE","body":"Hi, I get this error using command \r\n\r\neasyblogger get -p \"post_number\" -d markdown --write-files\r\n\r\n.easyblogger.credentials present\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 536, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/blogger/main.py\", line 87, in printPosts\r\n    converted).encode('utf-8',\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\u0142' in position 1: ordinal not in range(128)\r\nSat Mar 10 01:08:34 2018 <Greenlet at 0x7ffba28a09b0: printPosts({u'status': u'LIVE', u'content': u'\\nW\\u0142a\\u015, 'id,title,url', 'markdown', True)> failed with UnicodeEncodeError\r\n\r\n```\r\n\r\noutput of locale\r\n\r\n```\r\nLANG=pl_PL.utf8\r\nLANGUAGE=\r\nLC_CTYPE=\"pl_PL.utf8\"\r\nLC_NUMERIC=\"pl_PL.utf8\"\r\nLC_TIME=\"pl_PL.utf8\"\r\nLC_COLLATE=\"pl_PL.utf8\"\r\nLC_MONETARY=\"pl_PL.utf8\"\r\nLC_MESSAGES=\"pl_PL.utf8\"\r\nLC_PAPER=\"pl_PL.utf8\"\r\nLC_NAME=\"pl_PL.utf8\"\r\nLC_ADDRESS=\"pl_PL.utf8\"\r\nLC_TELEPHONE=\"pl_PL.utf8\"\r\nLC_MEASUREMENT=\"pl_PL.utf8\"\r\nLC_IDENTIFICATION=\"pl_PL.utf8\"\r\nLC_ALL=\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/raghur/easyblogger/issues/comments/385201267","html_url":"https://github.com/raghur/easyblogger/issues/12#issuecomment-385201267","issue_url":"https://api.github.com/repos/raghur/easyblogger/issues/12","id":385201267,"user":{"login":"snakefromhell","id":13994156,"avatar_url":"https://avatars2.githubusercontent.com/u/13994156?v=4","gravatar_id":"","url":"https://api.github.com/users/snakefromhell","html_url":"https://github.com/snakefromhell","followers_url":"https://api.github.com/users/snakefromhell/followers","following_url":"https://api.github.com/users/snakefromhell/following{/other_user}","gists_url":"https://api.github.com/users/snakefromhell/gists{/gist_id}","starred_url":"https://api.github.com/users/snakefromhell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snakefromhell/subscriptions","organizations_url":"https://api.github.com/users/snakefromhell/orgs","repos_url":"https://api.github.com/users/snakefromhell/repos","events_url":"https://api.github.com/users/snakefromhell/events{/privacy}","received_events_url":"https://api.github.com/users/snakefromhell/received_events","type":"User","site_admin":false},"created_at":"2018-04-28T19:49:28Z","updated_at":"2018-04-28T19:49:28Z","author_association":"NONE","body":"Thanks for the update, it did the tricks. \r\n\r\nNow I get _UnicodeEncodeError_ in _blogger.blogger.ContentArgParser_\r\n\r\n`easyblogger file post_title_number_only.markdown`\r\n\r\n```\r\n{u'aliases': [u'http://blog_url_.blogspot.com/2018/04/post_title_number_only.html'], u'title': u'post_title_number_only', u'draft': False, u'tags': [u'post_tag_number_only1', u'post_tag_number_only2', u'post_tag_number_only_etc']}\r\nIn processItem\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 536, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/blogger/main.py\", line 274, in processItem\r\n    fmt=args.format)\r\n  File \"/usr/local/lib/python2.7/dist-packages/blogger/blogger.py\", line 239, in post\r\n    markup = self._getMarkup(content, fmt, filters)\r\n  File \"/usr/local/lib/python2.7/dist-packages/blogger/blogger.py\", line 197, in _getMarkup\r\n    encodedBytes = bytes(raw).encode(\"utf8\")\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\u0142' in position 2: ordinal not in range(128)\r\nSat Apr 28 21:39:07 2018 <Greenlet at 0x7f61eb47f0f0: processItem(Namespace(blogid='_myblogid_', clientid=', <blogger.blogger.ContentArgParser object at 0x7f61)> failed with UnicodeEncodeError\r\n```"}}
{"actor":{"display_login":"snakefromhell"}}