This makes no sense to me. The ultimate goal of what I need to do is break down a very long string into respective words and compare each word with something.. I am only posting a snippet of the total output not to overwhelm and clutter this post with unnecessary data.
I created a simple setup to compare if these two 'words' are the same. In raw form they come out as unicode, but evaluating them as unicode or converting them to string does not return True.. here is a sample output
u'altmer'/<type 'unicode'> | u'altmer'<type 'unicode'> | False
Here is the code that compares the two.
ch.msg("%r/%r | %r%r | %s" % (color_entrytxt_list[index].lower(),
type(color_entrytxt_list[index].lower()),
entry,
type(entry),
"True" if color_entrytxt_list[index].lower() == entry.lower() else "False"))
* note I have also tried is instead of '=='
** I have also tried converting each unicode to string via str(unicode)
I don't understand why this is evaluating to false?
EDIT:
Thank you everyone for helping with this question. As mentioned by a few folks, the problem actually did reside that the two strings were not structurally the same, the problem was some characters weren't outputted to the screen.