Python Unicode Error 'in' Statement -


so i'm trying use check see if string 'in' string. but, 1 of strings has '™' character isn't in default set of unicode characters python uses. code like:

if string in item.name: '''do something''' 

where item.name has trademark symbol. how can still check see if string in item.name (string have trademark symbol , want check that). thanks!

by using unicodes.

>>> u'™' in u'©™®' true 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -