{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3078","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3078/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3078/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3078/events","html_url":"https://github.com/kivy/kivy/issues/3078","id":58880538,"number":3078,"title":"UnicodeEncodeError while pressing a ListItemButton","user":{"login":"alexkiro","id":1538458,"avatar_url":"https://avatars.githubusercontent.com/u/1538458?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkiro","html_url":"https://github.com/alexkiro","followers_url":"https://api.github.com/users/alexkiro/followers","following_url":"https://api.github.com/users/alexkiro/following{/other_user}","gists_url":"https://api.github.com/users/alexkiro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkiro/subscriptions","organizations_url":"https://api.github.com/users/alexkiro/orgs","repos_url":"https://api.github.com/users/alexkiro/repos","events_url":"https://api.github.com/users/alexkiro/events{/privacy}","received_events_url":"https://api.github.com/users/alexkiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T10:26:08Z","updated_at":"2015-02-25T10:28:49Z","closed_at":null,"body":"While having an unicode character in a ListItemButton's text is working ok, the application crashes when the button is pressed:\r\n\r\n    [INFO   ] [Base        ] Leaving application in progress...\r\n     Traceback (most recent call last):\r\n       File \"list_composite.py\", line 61, in <module>\r\n         runTouchApp(MainView(width=800))\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/base.py\", line 481, 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 287, in _mainloop\r\n         EventLoop.idle()\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/base.py\", line 324, in idle\r\n         self.dispatch_input()\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/base.py\", line 309, in dispatch_input\r\n         post_dispatch_input(*pop(0))\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/base.py\", line 220, in post_dispatch_input\r\n         listener.dispatch('on_motion', etype, me)\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/core/window/__init__.py\", line 649, in on_motion\r\n         self.dispatch('on_touch_up', me)\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/core/window/__init__.py\", line 675, in on_touch_up\r\n         if w.dispatch('on_touch_up', touch):\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/widget.py\", line 306, in on_touch_up\r\n         if child.dispatch('on_touch_up', touch):\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/widget.py\", line 306, in on_touch_up\r\n         if child.dispatch('on_touch_up', touch):\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/scrollview.py\", line 697, in on_touch_up\r\n         self.simulate_touch_down(touch)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/scrollview.py\", line 508, in simulate_touch_down\r\n         ret = super(ScrollView, self).on_touch_down(touch)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/widget.py\", line 284, in on_touch_down\r\n         if child.dispatch('on_touch_down', touch):\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/widget.py\", line 284, in on_touch_down\r\n         if child.dispatch('on_touch_down', touch):\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/widget.py\", line 284, in on_touch_down\r\n         if child.dispatch('on_touch_down', touch):\r\n       File \"kivy/_event.pyx\", line 316, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:4690)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/behaviors.py\", line 92, in on_touch_down\r\n         self._do_press()\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/uix/behaviors.py\", line 75, in _do_press\r\n         self.state = 'down'\r\n       File \"kivy/properties.pyx\", line 345, in kivy.properties.Property.__set__ (kivy/properties.c:3654)\r\n       File \"kivy/properties.pyx\", line 377, in kivy.properties.Property.set (kivy/properties.c:4169)\r\n       File \"kivy/properties.pyx\", line 431, in kivy.properties.Property.dispatch (kivy/properties.c:4823)\r\n       File \"/usr/lib/python2.7/dist-packages/kivy/lang.py\", line 1317, in call_fn\r\n         element, key, value, rule.value))\r\n     UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe9' in position 23: ordinal not in range(128)\r\n\r\nKivy version:\r\n\r\n    $ pip freeze | grep -i kivy\r\n    Kivy==1.8.0\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/8906525-unicodeencodeerror-while-pressing-a-listitembutton?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>"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/75937805","html_url":"https://github.com/kivy/kivy/issues/3078#issuecomment-75937805","issue_url":"https://api.github.com/repos/kivy/kivy/issues/3078","id":75937805,"user":{"login":"alexkiro","id":1538458,"avatar_url":"https://avatars.githubusercontent.com/u/1538458?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkiro","html_url":"https://github.com/alexkiro","followers_url":"https://api.github.com/users/alexkiro/followers","following_url":"https://api.github.com/users/alexkiro/following{/other_user}","gists_url":"https://api.github.com/users/alexkiro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkiro/subscriptions","organizations_url":"https://api.github.com/users/alexkiro/orgs","repos_url":"https://api.github.com/users/alexkiro/repos","events_url":"https://api.github.com/users/alexkiro/events{/privacy}","received_events_url":"https://api.github.com/users/alexkiro/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T10:28:49Z","updated_at":"2015-02-25T10:28:49Z","body":"The error can be replicate with this simple modified kivy example:\r\n\r\nhttp://pastebin.com/dy0pWK6D"}}