{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/106","repository_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery","labels_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/106/comments","events_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/106/events","html_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/106","id":140554099,"number":106,"title":"MRG: Allow unicode in code and outputs","user":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-14T01:47:55Z","updated_at":"2016-03-16T14:54:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/pulls/106","html_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/106","diff_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/106.diff","patch_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/106.patch"},"body":"Previously, [our] (https://github.com/mne-tools/mne-python) code had unicode in the `stdout` which gave:\r\n```\r\n../examples/preprocessing/plot_maxwell_filter.py is not compiling:\r\nTraceback (most recent call last):\r\n  File \"/home/larsoner/custombuilds/sphinx-gallery/sphinx_gallery/gen_rst.py\", line 474, in execute_script\r\n    my_stdout = my_buffer.getvalue().strip().expandtabs()\r\n  File \"/usr/lib/python2.7/StringIO.py\", line 271, in getvalue\r\n    self.buf += ''.join(self.buflist)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 36: ordinal not in range(128)\r\n```\r\nModified a test that fails on `master` and passes on this PR.\r\n\r\nWorks on my system (™) on Py3k and Python 2.7."},"comment":{"url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/comments/197365945","html_url":"https://github.com/sphinx-gallery/sphinx-gallery/pull/106#issuecomment-197365945","issue_url":"https://api.github.com/repos/sphinx-gallery/sphinx-gallery/issues/106","id":197365945,"user":{"login":"agramfort","id":161052,"avatar_url":"https://avatars.githubusercontent.com/u/161052?v=3","gravatar_id":"","url":"https://api.github.com/users/agramfort","html_url":"https://github.com/agramfort","followers_url":"https://api.github.com/users/agramfort/followers","following_url":"https://api.github.com/users/agramfort/following{/other_user}","gists_url":"https://api.github.com/users/agramfort/gists{/gist_id}","starred_url":"https://api.github.com/users/agramfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramfort/subscriptions","organizations_url":"https://api.github.com/users/agramfort/orgs","repos_url":"https://api.github.com/users/agramfort/repos","events_url":"https://api.github.com/users/agramfort/events{/privacy}","received_events_url":"https://api.github.com/users/agramfort/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T14:54:22Z","updated_at":"2016-03-16T14:54:22Z","body":"thanks heaps @Eric89GXL !"}}