{"action":"created","issue":{"url":"https://api.github.com/repos/insanum/sncli/issues/23","repository_url":"https://api.github.com/repos/insanum/sncli","labels_url":"https://api.github.com/repos/insanum/sncli/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/insanum/sncli/issues/23/comments","events_url":"https://api.github.com/repos/insanum/sncli/issues/23/events","html_url":"https://github.com/insanum/sncli/issues/23","id":143444393,"number":23,"title":"Search using cyrillic(unicode?) characters cause crash","user":{"login":"kadomcevi","id":10235163,"avatar_url":"https://avatars.githubusercontent.com/u/10235163?v=3","gravatar_id":"","url":"https://api.github.com/users/kadomcevi","html_url":"https://github.com/kadomcevi","followers_url":"https://api.github.com/users/kadomcevi/followers","following_url":"https://api.github.com/users/kadomcevi/following{/other_user}","gists_url":"https://api.github.com/users/kadomcevi/gists{/gist_id}","starred_url":"https://api.github.com/users/kadomcevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadomcevi/subscriptions","organizations_url":"https://api.github.com/users/kadomcevi/orgs","repos_url":"https://api.github.com/users/kadomcevi/repos","events_url":"https://api.github.com/users/kadomcevi/events{/privacy}","received_events_url":"https://api.github.com/users/kadomcevi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-25T07:25:48Z","updated_at":"2016-04-01T09:09:38Z","closed_at":null,"body":"How to reproduce:\r\nopen sncli\r\ntype command:  /фото\r\nprogram crashed\r\nTraceback (most recent call last):\r\n  File \"./sncli\", line 33, in <module>\r\n    sncli.main(sys.argv[1:])\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/sncli.py\", line 1200, in main\r\n    sncli(sync).gui(key)\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/sncli.py\", line 1016, in gui\r\n    self.sncli_loop.run()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 278, in run\r\n    self.screen.run_wrapper(self._run)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/raw_display.py\", line 272, in run_wrapper\r\n    return fn()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 343, in _run\r\n    self.event_loop.run()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 673, in run\r\n    self._loop()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 710, in _loop\r\n    self._watch_files[fd]()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 394, in _update\r\n    self.process_input(keys)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 494, in process_input\r\n    k = self._topmost_widget.keypress(self.screen_size, k)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/container.py\", line 1583, in keypress\r\n    key = self.focus.keypress(tsize, key)\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/user_input.py\", line 22, in keypress\r\n    self.callback_func(self.callback_func_args, self.edit_text)\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/sncli.py\", line 340, in gui_search_input\r\n    self.view_titles.update_note_list(search_string, args[0])\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/view_titles.py\", line 23, in update_note_list\r\n    self.ndb.filter_notes(self.search_string, search_mode)\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/notes_db.py\", line 96, in filter_notes\r\n    self.filter_notes_gstyle(search_string)\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/notes_db.py\", line 218, in filter_notes_gstyle\r\n    self._helper_gstyle_wordmatch(word_pats, n.get('content')):\r\n  File \"/home/igor/prj/sncli/sncli/simplenote_cli/notes_db.py\", line 145, in _helper_gstyle_wordmatch\r\n    if wp in lowercase_content:\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)\r\n\r\n\r\nnote nvpy work fine with unicode search..."},"comment":{"url":"https://api.github.com/repos/insanum/sncli/issues/comments/204322151","html_url":"https://github.com/insanum/sncli/issues/23#issuecomment-204322151","issue_url":"https://api.github.com/repos/insanum/sncli/issues/23","id":204322151,"user":{"login":"kadomcevi","id":10235163,"avatar_url":"https://avatars.githubusercontent.com/u/10235163?v=3","gravatar_id":"","url":"https://api.github.com/users/kadomcevi","html_url":"https://github.com/kadomcevi","followers_url":"https://api.github.com/users/kadomcevi/followers","following_url":"https://api.github.com/users/kadomcevi/following{/other_user}","gists_url":"https://api.github.com/users/kadomcevi/gists{/gist_id}","starred_url":"https://api.github.com/users/kadomcevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadomcevi/subscriptions","organizations_url":"https://api.github.com/users/kadomcevi/orgs","repos_url":"https://api.github.com/users/kadomcevi/repos","events_url":"https://api.github.com/users/kadomcevi/events{/privacy}","received_events_url":"https://api.github.com/users/kadomcevi/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T09:09:38Z","updated_at":"2016-04-01T09:09:38Z","body":"Sorry, my mistake. It is not your branch:("}}