{"action":"closed","issue":{"url":"https://api.github.com/repos/gamagori/pizzapi/issues/42","repository_url":"https://api.github.com/repos/gamagori/pizzapi","labels_url":"https://api.github.com/repos/gamagori/pizzapi/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/gamagori/pizzapi/issues/42/comments","events_url":"https://api.github.com/repos/gamagori/pizzapi/issues/42/events","html_url":"https://github.com/gamagori/pizzapi/issues/42","id":393917981,"node_id":"MDU6SXNzdWUzOTM5MTc5ODE=","number":42,"title":"Trademark and Copyright symbols break menu search","user":{"login":"cb-ndow","id":43140520,"node_id":"MDQ6VXNlcjQzMTQwNTIw","avatar_url":"https://avatars0.githubusercontent.com/u/43140520?v=4","gravatar_id":"","url":"https://api.github.com/users/cb-ndow","html_url":"https://github.com/cb-ndow","followers_url":"https://api.github.com/users/cb-ndow/followers","following_url":"https://api.github.com/users/cb-ndow/following{/other_user}","gists_url":"https://api.github.com/users/cb-ndow/gists{/gist_id}","starred_url":"https://api.github.com/users/cb-ndow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cb-ndow/subscriptions","organizations_url":"https://api.github.com/users/cb-ndow/orgs","repos_url":"https://api.github.com/users/cb-ndow/repos","events_url":"https://api.github.com/users/cb-ndow/events{/privacy}","received_events_url":"https://api.github.com/users/cb-ndow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-24T18:19:22Z","updated_at":"2018-12-24T18:20:26Z","closed_at":"2018-12-24T18:20:26Z","author_association":"NONE","body":"When searching for some specific items in the menu certain ascii symbols break the menu.search() function.\r\n\r\n```menu.search(Name='Coke')\r\n20BCOKE ---------------------------------------------------------------------------\r\nUnicodeEncodeError                        Traceback (most recent call last)\r\n<ipython-input-6-6813dfebb3e9> in <module>()\r\n----> 1 menu.search(Name='Coke')\r\n\r\n/var/opt/cloudbolt/proserv/pizzapi/pizzapi/menu.py in search(self, **conditions)\r\n    105             if all(y in v.get(x, '') for x, y in conditions.items()):\r\n    106                 print(v['Code'], end=' ')\r\n--> 107                 print(v['Name'], end=' ')\r\n    108                 print('$' + v['Price'], end=' ')\r\n    109                 print(v['SizeCode'], end=' ')\r\n\r\nUnicodeEncodeError: 'ascii' codec can't encode character '\\xae' in position 16: ordinal not in range(128)```"}}
{"actor":{"display_login":"cb-ndow"}}