{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/python-client/issues/184","repository_url":"https://api.github.com/repos/neovim/python-client","labels_url":"https://api.github.com/repos/neovim/python-client/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/neovim/python-client/issues/184/comments","events_url":"https://api.github.com/repos/neovim/python-client/issues/184/events","html_url":"https://github.com/neovim/python-client/issues/184","id":141853117,"number":184,"title":"vim.funcs.getchar() chokes on special input on python3","user":{"login":"fmoralesc","id":221465,"avatar_url":"https://avatars.githubusercontent.com/u/221465?v=3","gravatar_id":"","url":"https://api.github.com/users/fmoralesc","html_url":"https://github.com/fmoralesc","followers_url":"https://api.github.com/users/fmoralesc/followers","following_url":"https://api.github.com/users/fmoralesc/following{/other_user}","gists_url":"https://api.github.com/users/fmoralesc/gists{/gist_id}","starred_url":"https://api.github.com/users/fmoralesc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmoralesc/subscriptions","organizations_url":"https://api.github.com/users/fmoralesc/orgs","repos_url":"https://api.github.com/users/fmoralesc/repos","events_url":"https://api.github.com/users/fmoralesc/events{/privacy}","received_events_url":"https://api.github.com/users/fmoralesc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-18T12:35:09Z","updated_at":"2016-03-18T12:58:50Z","closed_at":null,"body":"Compare\r\n``` vim\r\npy print vim.funs.getchar()\r\n```\r\nand\r\n``` vim\r\npy3 print(vim.funcs.getchar())\r\n````\r\nwhen you press backspace (for example).\r\n\r\nI get\r\n```\r\nSe ha detectado un error al procesar function provider#python3#Call:                                                              \r\nlínea   18                                                                                                                        \r\nUnicodeDecodeError('utf-8', b'\\x80kb', 0, 1, 'invalid start byte')                                                                \r\nTraceback (most recent call last):                                                                                                \r\n  File \"/usr/lib/python3.5/site-packages/neovim/msgpack_rpc/session.py\", line 181, in handler                                     \r\n    rv = self._request_cb(name, args)                                                                                             \r\n  File \"/usr/lib/python3.5/site-packages/neovim/api/common.py\", line 237, in filter_request_cb                                    \r\n    walk(self._in, args, self, name, 'request'))                                                                                  \r\n  File \"/usr/lib/python3.5/site-packages/neovim/plugin/host.py\", line 66, in _on_request                                          \r\n    rv = handler(*args)                                                                                                           \r\n  File \"/usr/lib/python3.5/site-packages/neovim/plugin/host.py\", line 152, in <lambda>                                            \r\n    decoder = lambda fn, hook, *args: fn(*hook.walk(args))                                                                        \r\n  File \"/usr/lib/python3.5/site-packages/neovim/plugin/script_host.py\", line 77, in python_execute                                \r\n    exec(script, self.module.__dict__)                                                                                            \r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte                 \r\n```"},"comment":{"url":"https://api.github.com/repos/neovim/python-client/issues/comments/198343842","html_url":"https://github.com/neovim/python-client/issues/184#issuecomment-198343842","issue_url":"https://api.github.com/repos/neovim/python-client/issues/184","id":198343842,"user":{"login":"bfredl","id":1363104,"avatar_url":"https://avatars.githubusercontent.com/u/1363104?v=3","gravatar_id":"","url":"https://api.github.com/users/bfredl","html_url":"https://github.com/bfredl","followers_url":"https://api.github.com/users/bfredl/followers","following_url":"https://api.github.com/users/bfredl/following{/other_user}","gists_url":"https://api.github.com/users/bfredl/gists{/gist_id}","starred_url":"https://api.github.com/users/bfredl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfredl/subscriptions","organizations_url":"https://api.github.com/users/bfredl/orgs","repos_url":"https://api.github.com/users/bfredl/repos","events_url":"https://api.github.com/users/bfredl/events{/privacy}","received_events_url":"https://api.github.com/users/bfredl/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T12:58:50Z","updated_at":"2016-03-18T12:58:50Z","body":"we can add `decode=False` kwarg, should be simple with #179"}}