{"action":"closed","issue":{"url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/161","repository_url":"https://api.github.com/repos/kylebarron/stata_kernel","labels_url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/161/comments","events_url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/161/events","html_url":"https://github.com/kylebarron/stata_kernel/issues/161","id":359325639,"node_id":"MDU6SXNzdWUzNTkzMjU2Mzk=","number":161,"title":"Can not use Chinese Characters when using Use the new Stata Jupyter kernel with Atom's Hydrogen package","user":{"login":"LulinS","id":23133457,"node_id":"MDQ6VXNlcjIzMTMzNDU3","avatar_url":"https://avatars2.githubusercontent.com/u/23133457?v=4","gravatar_id":"","url":"https://api.github.com/users/LulinS","html_url":"https://github.com/LulinS","followers_url":"https://api.github.com/users/LulinS/followers","following_url":"https://api.github.com/users/LulinS/following{/other_user}","gists_url":"https://api.github.com/users/LulinS/gists{/gist_id}","starred_url":"https://api.github.com/users/LulinS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LulinS/subscriptions","organizations_url":"https://api.github.com/users/LulinS/orgs","repos_url":"https://api.github.com/users/LulinS/repos","events_url":"https://api.github.com/users/LulinS/events{/privacy}","received_events_url":"https://api.github.com/users/LulinS/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-09-12T05:53:18Z","updated_at":"2018-09-14T05:04:57Z","closed_at":"2018-09-14T05:04:57Z","author_association":"NONE","body":"When my code contains Chinese Characters, it reports: \r\n> UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 75-76: invalid continuation byte\r\n\r\nThe detail description is that when I draw one picture using command line, the first picture goes well. However, when I run the second command, this does not work, and report the above error. Then, I rerun the first command, it goes well. Strangely, the second picture that I want to draw comes out together.\r\n\r\nMy command is like this:\r\n```\r\nline mcar car100 car300 trddt, ytitle(\"CAR(等权)\") xtitle(\"交易日\") legend(label(1 \"A股\") label(2 \"Top100\") label(3 \"Top300\"))\r\n\r\nline wcar wcar100 wcar300 trddt, ytitle(\"CAR(市值加权)\") xtitle(\"交易日\") legend(label(1 \"A股\") label(2 \"Top100\") label(3 \"Top300\"))\r\n```\r\nThe full message is like this:\r\n> [IPKernelApp] ERROR | Exception in message handler: Traceback (most recent call last): File \"/Applications/anaconda3/lib/python3.6/site-packages/ipykernel/kernelbase.py\", line 233, in dispatch_shell handler(stream, idents, msg) File \"/Applications/anaconda3/lib/python3.6/site-packages/ipykernel/kernelbase.py\", line 399, in execute_request user_expressions, allow_stdin) File \"/Applications/anaconda3/lib/python3.6/site-packages/stata_kernel/kernel.py\", line 81, in do_execute text_to_run, md5, text_to_exclude=text_to_exclude) File \"/Applications/anaconda3/lib/python3.6/site-packages/stata_kernel/stata_session.py\", line 195, in do rc, res = self.expect(text=text, child=child, md5=md5, **kwargs) File \"/Applications/anaconda3/lib/python3.6/site-packages/stata_kernel/stata_session.py\", line 242, in expect match_index = child.expect(expect_list, timeout=None) File \"/Applications/anaconda3/lib/python3.6/site-packages/pexpect/spawnbase.py\", line 341, in expect timeout, searchwindowsize, async_) File \"/Applications/anaconda3/lib/python3.6/site-packages/pexpect/spawnbase.py\", line 369, in expect_list return exp.expect_loop(timeout) File \"/Applications/anaconda3/lib/python3.6/site-packages/pexpect/expect.py\", line 111, in expect_loop incoming = spawn.read_nonblocking(spawn.maxread, timeout) File \"/Applications/anaconda3/lib/python3.6/site-packages/pexpect/pty_spawn.py\", line 485, in read_nonblocking return super(spawn, self).read_nonblocking(size) File \"/Applications/anaconda3/lib/python3.6/site-packages/pexpect/spawnbase.py\", line 178, in read_nonblocking s = self._decoder.decode(s, final=False) File \"/Applications/anaconda3/lib/python3.6/codecs.py\", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 75-76: invalid continuation byte\r\n\r\nThe version of my stata_kernel is 1.4.8 on the Mac OS."}}
{"actor":{"display_login":"kylebarron"}}