I'd like to compare a user input char to a unicode char. My code is failing. How to fix? For example:
Does not result in a match. How do I do the comparison so that it works?Code:from appuifw import * p = query(u'enter', 'text') # user inputs £ using the chr key on the phone if p == u'£' or p == '£': note(u'match')
PyS60 1.9.7

Reply With Quote



