Trademark and Copyright symbols break menu search
Closed this issue · 1 comments
cb-ndow commented
When searching for some specific items in the menu certain ascii symbols break the menu.search() function.
20BCOKE ---------------------------------------------------------------------------
UnicodeEncodeError Traceback (most recent call last)
<ipython-input-6-6813dfebb3e9> in <module>()
----> 1 menu.search(Name='Coke')
/var/opt/cloudbolt/proserv/pizzapi/pizzapi/menu.py in search(self, **conditions)
105 if all(y in v.get(x, '') for x, y in conditions.items()):
106 print(v['Code'], end=' ')
--> 107 print(v['Name'], end=' ')
108 print('$' + v['Price'], end=' ')
109 print(v['SizeCode'], end=' ')
UnicodeEncodeError: 'ascii' codec can't encode character '\xae' in position 16: ordinal not in range(128)```