My code:
a = '汉'
b = u'汉'
These two are the same Chinese character. But obviously, a == b is False. How do I fix this? Note, I can't convert a to utf-8 because I have no access to the code. I need to convert b to the encoding that a is using.
So, my question is, what do I do to turn the encoding of b into that of a?