I have a rather weird problem: How do I compare strings (using Python ) that where String X is ASCII and String Y is in UTF or Unicode?
Currently, when I am comparing strings, I receive the following issue:
UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
filteredtext = [t for t in s if t.lower() not in stopwords]
How do I ensure that the strings are in the same format?
Best Regards.