{"action":"closed","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/2876","labels_url":"https://api.github.com/repos/kivy/kivy/issues/2876/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/2876/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/2876/events","html_url":"https://github.com/kivy/kivy/issues/2876","id":55094535,"number":2876,"title":"Error after inserting non-ASCII char from Cliboard to TextInput widget","user":{"login":"macropas","id":7488502,"avatar_url":"https://avatars.githubusercontent.com/u/7488502?v=3","gravatar_id":"","url":"https://api.github.com/users/macropas","html_url":"https://github.com/macropas","followers_url":"https://api.github.com/users/macropas/followers","following_url":"https://api.github.com/users/macropas/following{/other_user}","gists_url":"https://api.github.com/users/macropas/gists{/gist_id}","starred_url":"https://api.github.com/users/macropas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macropas/subscriptions","organizations_url":"https://api.github.com/users/macropas/orgs","repos_url":"https://api.github.com/users/macropas/repos","events_url":"https://api.github.com/users/macropas/events{/privacy}","received_events_url":"https://api.github.com/users/macropas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/core","name":"core","color":"444444"},{"url":"https://api.github.com/repos/kivy/kivy/labels/needs-analysis","name":"needs-analysis","color":"207de5"},{"url":"https://api.github.com/repos/kivy/kivy/labels/platform-linux","name":"platform-linux","color":"000000"},{"url":"https://api.github.com/repos/kivy/kivy/labels/pygame","name":"pygame","color":"BFFC1A"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kivy/kivy/milestones/25","html_url":"https://github.com/kivy/kivy/milestones/1.9.1","labels_url":"https://api.github.com/repos/kivy/kivy/milestones/25/labels","id":741176,"number":25,"title":"1.9.1","description":"","creator":{"login":"akshayaurora","id":788023,"avatar_url":"https://avatars.githubusercontent.com/u/788023?v=3","gravatar_id":"","url":"https://api.github.com/users/akshayaurora","html_url":"https://github.com/akshayaurora","followers_url":"https://api.github.com/users/akshayaurora/followers","following_url":"https://api.github.com/users/akshayaurora/following{/other_user}","gists_url":"https://api.github.com/users/akshayaurora/gists{/gist_id}","starred_url":"https://api.github.com/users/akshayaurora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshayaurora/subscriptions","organizations_url":"https://api.github.com/users/akshayaurora/orgs","repos_url":"https://api.github.com/users/akshayaurora/repos","events_url":"https://api.github.com/users/akshayaurora/events{/privacy}","received_events_url":"https://api.github.com/users/akshayaurora/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":46,"state":"open","created_at":"2014-08-03T19:04:24Z","updated_at":"2015-08-01T22:30:40Z","due_on":"2015-08-08T18:30:00Z","closed_at":null},"comments":4,"created_at":"2015-01-21T23:44:09Z","updated_at":"2015-08-01T22:30:40Z","closed_at":"2015-08-01T22:30:40Z","body":"Xubuntu 14.10, Python 2.7.8.\r\nInserting non-ASCII char \"Д\" by Control+V into the TextInput widget\r\n\r\n![screenshot - 01222015 - 01 33 58 am](https://cloud.githubusercontent.com/assets/7488502/5847630/e38d4300-a1d7-11e4-8fff-469e69aee2d0.png)\r\n\r\n\r\n```\r\n[INFO              ] [Logger      ] Record log in /root/.kivy/logs/kivy_15-01-22_0.txt\r\n\r\n [INFO              ] Kivy v1.9.0-dev\r\n [INFO              ] [Python      ] v2.7.8 (default, Oct 20 2014, 15:05:19) \r\n [GCC 4.9.1]\r\n [INFO              ] [Factory     ] 173 symbols loaded\r\n [INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame, img_pil (img_ffpyplayer ignored)\r\n [INFO              ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)\r\n [INFO              ] [GL          ] OpenGL version <3.0 Mesa 10.3.2>\r\n [INFO              ] [GL          ] OpenGL vendor <Intel Open Source Technology Center>\r\n [INFO              ] [GL          ] OpenGL renderer <Mesa DRI Intel(R) Sandybridge Mobile >\r\n [INFO              ] [GL          ] OpenGL parsed version: 3, 0\r\n [INFO              ] [GL          ] Shading version <1.30>\r\n [INFO              ] [GL          ] Texture max size <8192>\r\n [INFO              ] [GL          ] Texture max units <16>\r\n [INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked\r\n [INFO              ] [Text        ] Provider: pygame\r\n [INFO              ] [Video       ] Provider: pygst\r\n [INFO              ] [OSC         ] using <multiprocessing> for socket\r\n [INFO              ] [ProbeSysfs  ] device match: /dev/input/event5\r\n [INFO              ] [MTD         ] Read event from </dev/input/event5>\r\n [INFO              ] [Base        ] Start application main loop\r\n [INFO              ] [MTD         ] </dev/input/event5> range position X is 1212 - 5756\r\n [INFO              ] [MTD         ] </dev/input/event5> range position Y is 996 - 4876\r\n [INFO              ] [MTD         ] </dev/input/event5> range touch major is 0 - 0\r\n [INFO              ] [MTD         ] </dev/input/event5> range touch minor is 0 - 0\r\n [INFO              ] [MTD         ] </dev/input/event5> range pressure is 0 - 255\r\n [INFO              ] [MTD         ] </dev/input/event5> axes invertion: X is 0, Y is 0\r\n [INFO              ] [GL          ] NPOT texture support is available\r\n [INFO              ] [Clipboard   ] Provider: pygame(['clipboard_dbusklipper'] ignored)\r\n [INFO              ] [Base        ] Leaving application in progress...\r\n Traceback (most recent call last):\r\n   File \"/home/johndoe/kivy-master/examples/RST_Editor/main.py\", line 61, in <module>\r\n     Editor().run()\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/app.py\", line 824, in run\r\n     runTouchApp()\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/base.py\", line 484, in runTouchApp\r\n     EventLoop.window.mainloop()\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/core/window/window_pygame.py\", line 381, in mainloop\r\n     self._mainloop()\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/core/window/window_pygame.py\", line 348, in _mainloop\r\n     self.modifiers):\r\n   File \"_event.pyx\", line 697, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:6788)\r\n   File \"_event.pyx\", line 1159, in kivy._event.EventObservers.dispatch (kivy/_event.c:11470)\r\n   File \"_event.pyx\", line 1083, in kivy._event.EventObservers._dispatch (kivy/_event.c:11066)\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/core/window/__init__.py\", line 149, in _on_window_key_down\r\n     return self.dispatch('on_key_down', keycode, text, modifiers)\r\n   File \"_event.pyx\", line 697, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:6788)\r\n   File \"_event.pyx\", line 1159, in kivy._event.EventObservers.dispatch (kivy/_event.c:11470)\r\n   File \"_event.pyx\", line 1083, in kivy._event.EventObservers._dispatch (kivy/_event.c:11066)\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/uix/textinput.py\", line 2017, in keyboard_on_key_down\r\n     self.paste()\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/uix/textinput.py\", line 1388, in paste\r\n     data = Clipboard.paste()\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/core/clipboard/__init__.py\", line 88, in paste\r\n     return self._paste()\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/core/clipboard/__init__.py\", line 106, in _paste\r\n     data = self.get(mime_type)\r\n   File \"/usr/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_pygame.py\", line 35, in get\r\n     text = text.encode('utf-8')\r\n UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7943168-error-after-inserting-non-ascii-char-from-cliboard-to-textinput-widget?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}